def onModuleLoad(self): b = Button(self.ClickMe, greet) RootPanel().add(b) # dynamically loads public/test.cache.js. dynamic.ajax_import("test.cache.js", names=['test_fn'])
def onModuleLoad(self): b = Button(self.ClickMe, greet) RootPanel().add(b) # dynamically loads public/test.cache.js. dynamic.ajax_import("test.cache.js", names = ['test_fn'])
def onModuleLoad(self): dynamic.ajax_import("/jsi18n/", names = ['gettext']) self.remote = DataService(['isauthenticated']) self.curpanel = None self.loginpanel = LoginPanel(self) self.registerpanel = RegisterPanel(self) self.dashboardpanel = DashboardPanel(self) self.remote.isauthenticated(self)