fixes in cms
This commit is contained in:
parent
d287962cd9
commit
f0babb7f0f
@ -23,7 +23,9 @@ class DocType:
|
|||||||
from jinja2 import Template
|
from jinja2 import Template
|
||||||
import os
|
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())
|
temp = Template(f.read())
|
||||||
|
|
||||||
if not self.doc.font_size:
|
if not self.doc.font_size:
|
||||||
|
@ -50,7 +50,7 @@ class DocType:
|
|||||||
where docstatus=0 and ifnull(published,0)=1"""):
|
where docstatus=0 and ifnull(published,0)=1"""):
|
||||||
DocList('Blog', name[0]).save()
|
DocList('Blog', name[0]).save()
|
||||||
webnotes.conn.set_value('Blog', name[0], 'modified', name[1])
|
webnotes.conn.set_value('Blog', name[0], 'modified', name[1])
|
||||||
|
|
||||||
from webnotes.cms.make import make_web_core
|
from webnotes.cms.make import make_web_core
|
||||||
make_web_core()
|
make_web_core()
|
||||||
|
|
||||||
|
@ -106,14 +106,7 @@ os.system("lib/wnf.py -l")
|
|||||||
# force sync all
|
# force sync all
|
||||||
os.system("lib/wnf.py --sync_all -f")
|
os.system("lib/wnf.py --sync_all -f")
|
||||||
|
|
||||||
# create website files
|
os.system("lib/wnf.py --cms")
|
||||||
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()
|
|
||||||
|
|
||||||
# set filemode false
|
# set filemode false
|
||||||
os.system("git config core.filemode false")
|
os.system("git config core.filemode false")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user