cms2 patch updates
This commit is contained in:
parent
c655f47fb1
commit
c4eb9bf838
@ -13,6 +13,8 @@ def execute():
|
||||
|
||||
save_pages()
|
||||
|
||||
save_website_settings()
|
||||
|
||||
def cleanup():
|
||||
import webnotes
|
||||
|
||||
@ -57,4 +59,15 @@ def save_pages():
|
||||
|
||||
for dt in query_map:
|
||||
for result in webnotes.conn.sql(query_map[dt], as_dict=1):
|
||||
DocList(dt, result['name']).save()
|
||||
DocList(dt, result['name']).save()
|
||||
|
||||
def save_website_settings():
|
||||
from webnotes.model.code import get_obj
|
||||
|
||||
# rewrite pages
|
||||
get_obj('Website Settings').on_update()
|
||||
|
||||
ss = get_obj('Style Settings')
|
||||
ss.validate()
|
||||
ss.doc.save()
|
||||
ss.on_update()
|
@ -1,12 +0,0 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
from webnotes.model.code import get_obj
|
||||
|
||||
# rewrite pages
|
||||
get_obj('Website Settings').on_update()
|
||||
|
||||
ss = get_obj('Style Settings')
|
||||
ss.validate()
|
||||
ss.doc.save()
|
||||
ss.on_update()
|
@ -337,11 +337,6 @@ patch_list = [
|
||||
'patch_file': 'stock_reco_patch',
|
||||
'description': 'stock reco patch: store diff info in field'
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.may_2012',
|
||||
'patch_file': 'cms',
|
||||
'description': 'generate html pages'
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.may_2012',
|
||||
'patch_file': 'reload_reports',
|
||||
@ -487,4 +482,9 @@ patch_list = [
|
||||
'patch_file': 'deprecate_import_data_control',
|
||||
'description': "deprecate doctype - Import Data Control and page - Import Data"
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.june_2012',
|
||||
'patch_file': 'cms2',
|
||||
'description': 'cms2 release patches'
|
||||
},
|
||||
]
|
Loading…
Reference in New Issue
Block a user