[Checkins] SVN: Zope/branches/gsoc-python-2.5/ Changed the condtion
checking for setting status of HTTPresponce from
Ranjith Babu Kannikara
ranjithkannikara at gmail.com
Mon Jun 9 12:49:21 EDT 2008
Log message for revision 87254:
Changed the condtion checking for setting status of HTTPresponce from
if( isinstance(status, types.ClassType) and issubclass(status, Exception))
to if( isinstance(status, (type, types.ClassType)) and issubclass(status, Exception))
for fixing the failures in the module Zope2
M doc/CHANGES.txt
M lib/python/ZPublisher/HTTPResponse.py
Changed:
U Zope/branches/gsoc-python-2.5/doc/CHANGES.txt
U Zope/branches/gsoc-python-2.5/lib/python/ZPublisher/HTTPResponse.py
-=-
Modified: Zope/branches/gsoc-python-2.5/doc/CHANGES.txt
===================================================================
--- Zope/branches/gsoc-python-2.5/doc/CHANGES.txt 2008-06-09 15:11:22 UTC (rev 87253)
+++ Zope/branches/gsoc-python-2.5/doc/CHANGES.txt 2008-06-09 16:49:20 UTC (rev 87254)
@@ -411,6 +411,11 @@
- Prevent ZPublisher from insering incorrect <base/> tags into the
headers of plain html files served from Zope3 resource directories.
+
+ - Changed the condtion checking for setting status of HTTPresponce from
+ if( isinstance(status, types.ClassType) and issubclass(status, Exception))
+ to if( isinstance(status, (type, types.ClassType)) and issubclass(status, Exception))
+ for fixing the failures in the module Zope2
Other Changes
Modified: Zope/branches/gsoc-python-2.5/lib/python/ZPublisher/HTTPResponse.py
===================================================================
--- Zope/branches/gsoc-python-2.5/lib/python/ZPublisher/HTTPResponse.py 2008-06-09 15:11:22 UTC (rev 87253)
+++ Zope/branches/gsoc-python-2.5/lib/python/ZPublisher/HTTPResponse.py 2008-06-09 16:49:20 UTC (rev 87254)
@@ -217,7 +217,7 @@
# It has already been determined.
return
- if (isinstance(status, types.ClassType)
+ if (isinstance(status, (type, types.ClassType))
and issubclass(status, Exception)):
status = status.__name__
More information about the Checkins
mailing list