comparison libervia.py @ 195:dd27072d8ae0

browser side: widgets refactoring: - moved base widgets in a base_widget module - widgets class now register themselves their Drag/Drop type
author Goffi <goffi@goffi.org>
date Mon, 04 Mar 2013 23:01:57 +0100
parents 6198be95a39c
children 0f5c2f799913
comparison
equal deleted inserted replaced
194:6198be95a39c 195:dd27072d8ae0
26 from pyjamas.Timer import Timer 26 from pyjamas.Timer import Timer
27 from pyjamas import Window, DOM 27 from pyjamas import Window, DOM
28 from pyjamas.JSONService import JSONProxy 28 from pyjamas.JSONService import JSONProxy
29 from browser_side.register import RegisterBox 29 from browser_side.register import RegisterBox
30 from browser_side.contact import ContactPanel 30 from browser_side.contact import ContactPanel
31 from browser_side.panels import WidgetsPanel, MicroblogItem 31 from browser_side.base_widget import WidgetsPanel
32 from browser_side.panels import MicroblogItem
32 from browser_side import panels, dialog 33 from browser_side import panels, dialog
33 from browser_side.jid import JID 34 from browser_side.jid import JID
34 from browser_side.tools import html_sanitize 35 from browser_side.tools import html_sanitize
35 36
36 MAX_MBLOG_CACHE = 500 #Max microblog entries kept in memories 37 MAX_MBLOG_CACHE = 500 #Max microblog entries kept in memories
118 self.retry_delay *= 2 119 self.retry_delay *= 2
119 120
120 class SatWebFrontend: 121 class SatWebFrontend:
121 def onModuleLoad(self): 122 def onModuleLoad(self):
122 print "============ onModuleLoad ==============" 123 print "============ onModuleLoad =============="
124 panels.ChatPanel.registerClass()
125 panels.MicroblogPanel.registerClass()
123 self.whoami = None 126 self.whoami = None
124 self._selected_listeners = set() 127 self._selected_listeners = set()
125 self.bridge = BridgeCall() 128 self.bridge = BridgeCall()
126 self.bridge_signals = BridgeSignals(self) 129 self.bridge_signals = BridgeSignals(self)
127 self.uni_box = None 130 self.uni_box = None