[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/HTTP - HTTPResponse.py:1.1.2.13

Martijn Pieters mj@zope.com
Wed, 13 Feb 2002 11:01:36 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/HTTP
In directory cvs.zope.org:/tmp/cvs-serv23602/Zope/Publisher/HTTP

Modified Files:
      Tag: Zope-3x-branch
	HTTPResponse.py 
Log Message:
Whoops, one of my 'optimizations' wasn't equivalent. Thanks to Shane Hathaway
for catching me out on this.

Error status_codes were not set to 500.


=== Zope3/lib/python/Zope/Publisher/HTTP/HTTPResponse.py 1.1.2.12 => 1.1.2.13 ===
     status_codes[key]=key
     status_codes[str(key)]=key
-[status_codes[name.lower()]
-    for name in dir(__builtins__) if name.endswith('Error')]
+en = [n.lower() for n in dir(__builtins__) if n.endswith('Error')]
+for name in en:
+    status_codes[name] = 500
 
 
 accumulate_header={'set-cookie': 1}.has_key