correction

master
inpos 2018-08-22 21:37:01 +03:00
parent 1bc7691855
commit a467158e65
1 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,12 @@ class ExtApplication(cp.Application):
def index(self, *args, **kwargs): def index(self, *args, **kwargs):
f = open(os.path.join(os.path.dirname(__file__), 'app.html')).read() f = open(os.path.join(os.path.dirname(__file__), 'app.html')).read()
self.main() self.main()
return f.format(title=self.title, base_url=BASE_URL, theme=THEME, theme_model=THEME_MODEL, script=str(js.js_manager)) return f.format(title=self.title,
base_url=BASE_URL,
theme=THEME,
theme_model=THEME_MODEL,
script=str(js.js_manager),
chart_theme_model=CHART_THEME_MODEL)
@cherrypy.expose @cherrypy.expose
def ajax_callback(self, *args, **kwargs): def ajax_callback(self, *args, **kwargs):