cms updates

This commit is contained in:
Rushabh Mehta 2012-05-09 15:37:54 +05:30
parent e0f2df9506
commit 81dba76699
2 changed files with 9 additions and 2 deletions

View File

@ -4,4 +4,8 @@ def execute():
from webnotes.model.code import get_obj
# rewrite pages
get_obj('Website Settings').rewrite_pages()
get_obj('Website Settings').rewrite_pages()
ss = get_obj('Style Settings')
ss.validate()
ss.on_update()

View File

@ -26,11 +26,14 @@ class DocType:
"""
self.set_home_page()
self.validate_domain_list()
def on_update(self):
self.rewrite_pages()
from webnotes.session_cache import clear_cache
clear_cache('Guest')
def rewrite_pages(self):
"""rewrite all web pages"""
import webnotes