Mercurial > libervia-web
diff 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 |
line wrap: on
line diff
--- a/libervia.py Mon Mar 04 00:19:03 2013 +0100 +++ b/libervia.py Mon Mar 04 23:01:57 2013 +0100 @@ -28,7 +28,8 @@ from pyjamas.JSONService import JSONProxy from browser_side.register import RegisterBox from browser_side.contact import ContactPanel -from browser_side.panels import WidgetsPanel, MicroblogItem +from browser_side.base_widget import WidgetsPanel +from browser_side.panels import MicroblogItem from browser_side import panels, dialog from browser_side.jid import JID from browser_side.tools import html_sanitize @@ -120,6 +121,8 @@ class SatWebFrontend: def onModuleLoad(self): print "============ onModuleLoad ==============" + panels.ChatPanel.registerClass() + panels.MicroblogPanel.registerClass() self.whoami = None self._selected_listeners = set() self.bridge = BridgeCall()