fixes in cms

This commit is contained in:
Anand Doshi 2012-05-22 13:41:51 +05:30
parent d287962cd9
commit f0babb7f0f
3 changed files with 5 additions and 10 deletions

View File

@ -23,7 +23,9 @@ class DocType:
from jinja2 import Template
import os
with open(os.path.join(os.path.dirname(__file__), 'custom_template.css'), 'r') as f:
with open(os.path.join(
os.path.dirname(os.path.abspath(__file__)),
'custom_template.css'), 'r') as f:
temp = Template(f.read())
if not self.doc.font_size:

View File

@ -50,7 +50,7 @@ class DocType:
where docstatus=0 and ifnull(published,0)=1"""):
DocList('Blog', name[0]).save()
webnotes.conn.set_value('Blog', name[0], 'modified', name[1])
from webnotes.cms.make import make_web_core
make_web_core()

View File

@ -106,14 +106,7 @@ os.system("lib/wnf.py -l")
# force sync all
os.system("lib/wnf.py --sync_all -f")
# create website files
from webnotes.model.code import get_obj
# rewrite pages
ws = get_obj('Website Settings')
ws.rewrite_pages()
ss = get_obj('Style Settings')
ss.validate()
ss.on_update()
os.system("lib/wnf.py --cms")
# set filemode false
os.system("git config core.filemode false")