diff browser_side/list_manager.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 2d6bd975a72d
children 2067d6241927
line wrap: on
line diff
--- a/browser_side/list_manager.py	Fri Jan 03 22:44:59 2014 +0100
+++ b/browser_side/list_manager.py	Sat Jan 04 00:17:46 2014 +0100
@@ -35,7 +35,8 @@
 from pyjamas.ui.DragWidget import DragWidget
 from pyjamas.Timer import Timer
 from pyjamas import DOM
-import panels
+
+from base_panels import PopupMenuPanel
 
 
 # HTML content for the removal button (image or text)
@@ -236,7 +237,7 @@
 
     def registerPopupMenuPanel(self, entries, hide, callback):
         "Register a popup menu panel that will be bound to all contact keys elements."
-        self.popup_menu = panels.PopupMenuPanel(entries=entries, hide=hide, callback=callback, style={"item": self.style["popupMenuItem"]})
+        self.popup_menu = PopupMenuPanel(entries=entries, hide=hide, callback=callback, style={"item": self.style["popupMenuItem"]})
 
 
 class DragAutoCompleteTextBox(AutoCompleteTextBox, DragWidget, MouseHandler, FocusHandler):