Example #1
0
	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()
Example #2
0
    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()
Example #3
0
	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()
Example #4
0
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()
Example #5
0
	def on_update(self):
		"""rebuild pages"""
		from website.doctype.website_settings.make_web_include_files import make
		make()
 def on_update(self):
     """rebuild pages"""
     from website.doctype.website_settings.make_web_include_files import make
     make()
Example #7
0
 def on_update(self):
     # make js and css
     from website.doctype.website_settings.make_web_include_files import make
     make()
Example #8
0
    def on_update(self):
        # make js and css
        from website.doctype.website_settings.make_web_include_files import make

        make()