Exemple #1
0
    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'])
Exemple #2
0
    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'])
Exemple #3
0
 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)