Skip to content

Commit

Permalink
Sort request items for presentation in the error reporting utility.
Browse files Browse the repository at this point in the history
Basic human decency requires this.
  • Loading branch information
mgedmin committed Dec 10, 2012
1 parent 24b9d04 commit 13b9263
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -10,6 +10,8 @@ CHANGES

- 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)
------------------
Expand Down
2 changes: 1 addition & 1 deletion src/zope/error/error.py
Expand Up @@ -147,7 +147,7 @@ def _getUsername(self, request):

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)
Expand Down

0 comments on commit 13b9263

Please sign in to comment.