[Checkins] SVN: zamplugin.control/trunk/src/zamplugin/control/menu.py Fix bad context given from menu, this ends in wrong view calls

Roger Ineichen roger at projekt01.ch
Fri Mar 14 06:09:06 EDT 2008


Log message for revision 84647:
  Fix bad context given from menu, this ends in wrong view calls

Changed:
  U   zamplugin.control/trunk/src/zamplugin/control/menu.py

-=-
Modified: zamplugin.control/trunk/src/zamplugin/control/menu.py
===================================================================
--- zamplugin.control/trunk/src/zamplugin/control/menu.py	2008-03-14 09:04:08 UTC (rev 84646)
+++ zamplugin.control/trunk/src/zamplugin/control/menu.py	2008-03-14 10:09:06 UTC (rev 84647)
@@ -46,7 +46,12 @@
 class AppControlContextMenuItem(item.ContextMenuItem):
     """Base IApplicationControl context menu item."""
 
+    def getURLContext(self):
+        # make sure we use the app control as context
+        root = getRoot(self.context)
+        return IApplicationControl(root)
 
+
 class RuntimeMenuItem(AppControlContextMenuItem):
     """Runtime menu item."""
 



More information about the Checkins mailing list