comparison src/browser/libervia_main.py @ 609:ec77c2bc18d3 frontends_multi_profiles

brower side: removed close listener for LiberviaWidget
author Goffi <goffi@goffi.org>
date Tue, 10 Feb 2015 19:10:28 +0100
parents 7af8f4ab3675
children deddd1cd8aa5
comparison
equal deleted inserted replaced
608:ea27925ef2a8 609:ec77c2bc18d3
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.uni_box = None # FIXME: to be removed 80 self.uni_box = None # FIXME: to be removed
81 self.status_panel = HTML('<br />') 81 self.status_panel = HTML('<br />')
82 # self.contact_panel = contact.ContactPanel(self)
83 self.panel = panels.MainPanel(self) 82 self.panel = panels.MainPanel(self)
84 self.discuss_panel = self.panel.discuss_panel 83 self.discuss_panel = self.panel.discuss_panel
85 self.tab_panel = self.panel.tab_panel 84 self.tab_panel = self.panel.tab_panel
86 self.tab_panel.addTabListener(self) 85 self.tab_panel.addTabListener(self)
87 self._register_box = None 86 self._register_box = None
96 self._register.call('isRegistered', self._isRegisteredCB) 95 self._register.call('isRegistered', self._isRegisteredCB)
97 self.initialised = False 96 self.initialised = False
98 self.init_cache = [] # used to cache events until initialisation is done 97 self.init_cache = [] # used to cache events until initialisation is done
99 self.cached_params = {} 98 self.cached_params = {}
100 99
101 #FIXME: to be removed (managed with cache and in quick_frontend
102 #FIXME: microblog cache should be managed directly in blog module 100 #FIXME: microblog cache should be managed directly in blog module
103 self.mblog_cache = [] # used to keep our own blog entries in memory, to show them in new mblog panel 101 self.mblog_cache = [] # used to keep our own blog entries in memory, to show them in new mblog panel
104 102
105 103 # self._selected_listeners = set() # FIXME: to be done with new listeners mechanism
106
107 # panels.ChatPanel.registerClass()
108 # panels.MicroblogPanel.registerClass()
109 # self._selected_listeners = set()
110 # # self.avatars_cache = {} # keep track of jid's avatar hash (key=jid, value=file)
111 104
112 @property 105 @property
113 def whoami(self): 106 def whoami(self):
114 # XXX: works because Libervia is mono-profile 107 # XXX: works because Libervia is mono-profile
115 # if one day Libervia manage several profiles at once, this must be deleted 108 # if one day Libervia manage several profiles at once, this must be deleted