[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/site/browser/tools.py Sort tools by name alphabetically.

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Jul 13 13:24:35 EDT 2004


Log message for revision 26496:
  Sort tools by name alphabetically.
  


Changed:
  U   Zope3/trunk/src/zope/app/site/browser/tools.py


-=-
Modified: Zope3/trunk/src/zope/app/site/browser/tools.py
===================================================================
--- Zope3/trunk/src/zope/app/site/browser/tools.py	2004-07-13 17:23:17 UTC (rev 26495)
+++ Zope3/trunk/src/zope/app/site/browser/tools.py	2004-07-13 17:24:35 UTC (rev 26496)
@@ -78,6 +78,7 @@
             tools.append({'title':view.title,
                           'description':view.description,
                           'action':'./@@manage%sTool.html' % name })
+        tools.sort(lambda x, y: cmp(x['title'], y['title']))
         return tools
 
 class ToolsBacklink:



More information about the Zope3-Checkins mailing list