def on_update(self): # make js and css from website.doctype.website_settings.make_web_include_files import make make() # clear web cache (for menus!) from webnotes.webutils import clear_cache clear_cache()
elif options.patch_sync: patch_sync() elif options.cleanup_data: from utilities import cleanup_data cleanup_data.run() elif options.domain: webnotes.conn.set_value('Website Settings', None, 'subdomain', options.domain) webnotes.conn.commit() print "Domain set to", options.domain elif options.clear_web: # build wn-web.js and wn-web.css from website.doctype.website_settings.make_web_include_files import make make() import webnotes.webutils webnotes.webutils.clear_cache() elif options.clear_cache: clear_cache() elif options.clear_defaults: import webnotes.defaults webnotes.defaults.clear_cache() webnotes.clear_cache() elif options.append_future_import: append_future_import()
def on_build(): from website.doctype.website_settings.make_web_include_files import make make() from home.page.latest_updates import latest_updates latest_updates.make()
def on_update(self): """rebuild pages""" from website.doctype.website_settings.make_web_include_files import make make()
def on_update(self): # make js and css from website.doctype.website_settings.make_web_include_files import make make()