fixes in cms
This commit is contained in:
parent
d287962cd9
commit
f0babb7f0f
@ -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:
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user