[Checkins] SVN: zope.error/trunk/ Sort request items for presentation in the error reporting utility.

Marius Gedminas cvs-admin at zope.org
Mon Dec 10 16:28:48 UTC 2012


Log message for revision 128549:
  Sort request items for presentation in the error reporting utility.
  
  Basic human decency requires this.
  
  

Changed:
  U   zope.error/trunk/CHANGES.txt
  U   zope.error/trunk/src/zope/error/error.py

-=-
Modified: zope.error/trunk/CHANGES.txt
===================================================================
--- zope.error/trunk/CHANGES.txt	2012-12-09 23:15:58 UTC (rev 128548)
+++ zope.error/trunk/CHANGES.txt	2012-12-10 16:28:48 UTC (rev 128549)
@@ -10,7 +10,9 @@
 
 - Dropped support for Python 2.4 and 2.5.
 
+- Sort request items for presentation in the error reporting utility.
 
+
 3.7.4 (2012-02-01)
 ------------------
 

Modified: zope.error/trunk/src/zope/error/error.py
===================================================================
--- zope.error/trunk/src/zope/error/error.py	2012-12-09 23:15:58 UTC (rev 128548)
+++ zope.error/trunk/src/zope/error/error.py	2012-12-10 16:28:48 UTC (rev 128549)
@@ -147,7 +147,7 @@
 
     def _getRequestAsHTML(self, request):
         lines = []
-        for key, value in request.items():
+        for key, value in sorted(request.items()):
             lines.append(u"%s: %s<br />\n" % (
                 getPrintable(key), getPrintable(value)))
         return u"".join(lines)



More information about the checkins mailing list