diff browser_side/dialog.py @ 323:0b7934e75e76

misc: reorganization of the file panels.py + clean the modules import: - some existing modules were not found during JS runtime (panels.py was too large?) - the *Panel classes of panels.py that do not reference "host" have been moved to base_panels.py - cleaned the import in various files
author souliane <souliane@mailoo.org>
date Sat, 04 Jan 2014 00:17:46 +0100
parents 7316a5696366
children 2067d6241927
line wrap: on
line diff
--- a/browser_side/dialog.py	Fri Jan 03 22:44:59 2014 +0100
+++ b/browser_side/dialog.py	Sat Jan 04 00:17:46 2014 +0100
@@ -34,7 +34,9 @@
 from pyjamas.ui.KeyboardListener import KEY_ESCAPE, KEY_ENTER
 from pyjamas.ui.MouseListener import MouseWheelHandler
 from pyjamas import Window
-from browser_side import panels
+
+from base_panels import ToggleStackPanel
+
 from sat_frontends.tools.misc import DEFAULT_MUC
 
 # List here the patterns that are not allowed in contact group names
@@ -173,7 +175,7 @@
         self.room_panel = RoomChooser(host, "" if visible == (False, True) else DEFAULT_MUC)
         self.contact_panel = ContactsChooser(host, nb_contact, ok_button)
 
-        self.stack_panel = panels.ToggleStackPanel(Width="100%")
+        self.stack_panel = ToggleStackPanel(Width="100%")
         self.stack_panel.add(self.room_panel, title_room, visible=visible[0])
         self.stack_panel.add(self.contact_panel, title_invite, visible=visible[1])
         self.stack_panel.addStackChangeListener(self)