[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - adding.py:1.9

Guido van Rossum guido@python.org
Mon, 28 Apr 2003 16:42:58 -0400


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

Modified Files:
	adding.py 
Log Message:
Add a new "Add Utility" menu, so you can create new utilities directly
from the utility service.


=== Zope3/src/zope/app/browser/container/adding.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.8	Tue Apr  8 17:44:35 2003
+++ Zope3/src/zope/app/browser/container/adding.py	Mon Apr 28 16:42:27 2003
@@ -93,15 +93,13 @@
     def addingInfo(wrapped_self):
         """Return menu data.
 
-        This is sorted with title as primary key, and description
-        as secondary key.
+        This is sorted by title.
         """
         menu_service = getService(wrapped_self.context, "BrowserMenu")
         result = menu_service.getMenu(wrapped_self.menu_id,
                                       wrapped_self,
                                       wrapped_self.request)
-        result.sort(lambda a, b: cmp((a['title'], a['description']),
-                                     (b['title'], b['description'])))
+        result.sort(lambda a, b: cmp(a['title'], b['title']))
         return result
     addingInfo = ContextMethod(addingInfo)