[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - menu.py:1.5

Sidnei da Silva sidnei at x3ng.com.br
Mon Aug 25 11:14:37 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv6817/src/zope/app/browser/services

Modified Files:
	menu.py 
Log Message:
Make getFactoriesFor(iface) return a list of tuples (name, factory) so it is actually useful for something

=== Zope3/src/zope/app/browser/services/menu.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/services/menu.py:1.4	Tue Aug 19 19:10:55 2003
+++ Zope3/src/zope/app/browser/services/menu.py	Mon Aug 25 10:14:06 2003
@@ -51,7 +51,7 @@
         return info
 
 
-class BrowserMenuServiceOverview:        
+class BrowserMenuServiceOverview:
 
     def getLocalMenus(self):
         menus_info = []
@@ -71,7 +71,7 @@
         for id, menu in service._registry.items():
             menus.append(self._getInfoFromMenu(id, menu))
         return menus
-            
+
 
     def _getInfoFromMenu(self, menu_id, menu):
         info = {}
@@ -100,10 +100,10 @@
 
     def _getItemsInfo(self, menu):
         menu_items = []
-        
+
         for items in menu.getMenuItems():
             action, title, description, filter, permission = items
-                
+
             menu_items.append({'title': title,
                                'action': action})
         return menu_items




More information about the Zope3-Checkins mailing list