fix to blog and wnf backup does not backup files

This commit is contained in:
Rushabh Mehta
2013-03-08 12:16:44 +05:30
parent 177226616a
commit 2b861f3081
2 changed files with 5 additions and 5 deletions

View File

@@ -34,9 +34,9 @@ h1, h2, h3, h4, h5 {
font-family: '{{ doc.google_web_font_for_heading or doc.heading_font }}', Arial, 'Helvetica Neue' !important; font-family: '{{ doc.google_web_font_for_heading or doc.heading_font }}', Arial, 'Helvetica Neue' !important;
} }
{% endif %} {% endif %}
{% if doc.heading_text_as %} {% if doc.heading_text_style %}
h1, h2, h3, h4, h5 { h1, h2, h3, h4, h5 {
text-transform: {{ doc.heading_text_as }}; text-transform: {{ doc.heading_text_style }};
} }
{% endif %} {% endif %}

View File

@@ -40,7 +40,7 @@ class DocType:
from webnotes.sessions import clear_cache from webnotes.sessions import clear_cache
clear_cache('Guest') clear_cache('Guest')
for f in ["small_font_size", "at_import"]: for f in ["small_font_size", "at_import", "heading_text_style"]:
if f in self.doc.fields: if f in self.doc.fields:
del self.doc.fields[f] del self.doc.fields[f]
@@ -60,7 +60,7 @@ class DocType:
fonts = list(set(fonts)) fonts = list(set(fonts))
if self.doc.heading_text_as: if self.doc.heading_text_as:
self.doc.heading_text_as = { self.doc.heading_text_style = {
"UPPERCASE": "uppercase", "UPPERCASE": "uppercase",
"Title Case":"capitalize", "Title Case":"capitalize",
"lowercase": "lowercase" "lowercase": "lowercase"
@@ -68,7 +68,7 @@ class DocType:
self.doc.at_import = "" self.doc.at_import = ""
for f in fonts: for f in fonts:
self.doc.at_import += "\n@import url(http://fonts.googleapis.com/css?family=%s);" % f.replace(" ", "+") self.doc.at_import += "\n@import url(http://fonts.googleapis.com/css?family=%s:400,700);" % f.replace(" ", "+")
def on_update(self): def on_update(self):