[Zope3-checkins] SVN: Zope3/trunk/src/bugtracker/browser/tracker.py Sort bugs by keys in overview.html

Roger Ineichen roger at projekt01.ch
Wed May 31 03:37:11 EDT 2006


Log message for revision 68403:
  Sort bugs by keys in overview.html

Changed:
  U   Zope3/trunk/src/bugtracker/browser/tracker.py

-=-
Modified: Zope3/trunk/src/bugtracker/browser/tracker.py
===================================================================
--- Zope3/trunk/src/bugtracker/browser/tracker.py	2006-05-31 07:04:50 UTC (rev 68402)
+++ Zope3/trunk/src/bugtracker/browser/tracker.py	2006-05-31 07:37:10 UTC (rev 68403)
@@ -206,11 +206,11 @@
         
         formatter = self.request.locale.dates.getFormatter('dateTime', 'short')
         result = []
-        for name, bug in self.context.items():
+        items  = self.context.items()
+        for name, bug in sorted(items, lambda x, y: cmp(int(x[0]), int(y[0]))):
             if checkBug(bug, criteria, self.getSearchText()):
                 result.append(BugView(bug, self.request))
 
-
         start = int(self.request.get('start', 0))
         size = int(self.request.get('size', 20))
                 



More information about the Zope3-Checkins mailing list