Commit d11aab51 authored by Ranjith Kannikara's avatar Ranjith Kannikara

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
parent b42c2492
......@@ -412,6 +412,11 @@ Zope Changes
- 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
- Disabled docutils file inclusion completely, rather than trying
......
......@@ -217,7 +217,7 @@ class HTTPResponse(BaseResponse):
# It has already been determined.
return
if (isinstance(status, types.ClassType)
if (isinstance(status, (type, types.ClassType))
and issubclass(status, Exception)):
status = status.__name__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment