comparison src/browser/libervia_main.py @ 700:b81816f42c81

browser side: added signal caching before profile is plugged, as QuickFrontend mechanism is not used
author Goffi <goffi@goffi.org>
date Wed, 27 May 2015 19:10:16 +0200
parents be55a782a976
children 9aa2e251a993
comparison
equal deleted inserted replaced
699:be55a782a976 700:b81816f42c81
75 class SatWebFrontend(InputHistory, QuickApp): 75 class SatWebFrontend(InputHistory, QuickApp):
76 def onModuleLoad(self): 76 def onModuleLoad(self):
77 log.info("============ onModuleLoad ==============") 77 log.info("============ onModuleLoad ==============")
78 self.bridge_signals = json.BridgeSignals(self) 78 self.bridge_signals = json.BridgeSignals(self)
79 QuickApp.__init__(self, json.BridgeCall) 79 QuickApp.__init__(self, json.BridgeCall)
80 self._profile_plugged = False
81 self.signals_cache[C.PROF_KEY_NONE] = []
80 self.panel = main_panel.MainPanel(self) 82 self.panel = main_panel.MainPanel(self)
81 self.tab_panel = self.panel.tab_panel 83 self.tab_panel = self.panel.tab_panel
82 self.tab_panel.addTabListener(self) 84 self.tab_panel.addTabListener(self)
83 self._register_box = None 85 self._register_box = None
84 RootPanel().add(self.panel) 86 RootPanel().add(self.panel)
347 self._defaultDomain = "libervia.org" 349 self._defaultDomain = "libervia.org"
348 350
349 self.bridge.getNewAccountDomain(callback=domain_cb, errback=domain_eb) 351 self.bridge.getNewAccountDomain(callback=domain_cb, errback=domain_eb)
350 self.plug_profiles([C.PROF_KEY_NONE]) # XXX: None was used intitially, but pyjamas bug when using variable arguments and None is the only arg. 352 self.plug_profiles([C.PROF_KEY_NONE]) # XXX: None was used intitially, but pyjamas bug when using variable arguments and None is the only arg.
351 353
352 def profilePlugged(self, dummy): # FIXME: to be called as a "profilePlugged" listener? 354 def profilePlugged(self, dummy):
353 QuickApp.profilePlugged(self, dummy) 355 self._profile_plugged = True
356 QuickApp.profilePlugged(self, C.PROF_KEY_NONE)
354 357
355 microblog_widget = self.displayWidget(blog.MicroblogPanel, ()) 358 microblog_widget = self.displayWidget(blog.MicroblogPanel, ())
356 self.setSelected(microblog_widget) 359 self.setSelected(microblog_widget)
357 360
358 # we fill the panels already here 361 # we fill the panels already here