[Checkins] SVN: zope.publisher/trunk/src/zope/publisher/http.py added lines for porting zope.server to Python2.5

nikhil n nikhil.n.n at gmail.com
Fri Aug 17 08:58:50 EDT 2007


Log message for revision 78906:
  added lines for porting zope.server to Python2.5

Changed:
  U   zope.publisher/trunk/src/zope/publisher/http.py

-=-
Modified: zope.publisher/trunk/src/zope/publisher/http.py
===================================================================
--- zope.publisher/trunk/src/zope/publisher/http.py	2007-08-17 12:12:44 UTC (rev 78905)
+++ zope.publisher/trunk/src/zope/publisher/http.py	2007-08-17 12:58:50 UTC (rev 78906)
@@ -822,7 +822,7 @@
         Calls self.setBody() with an error response.
         """
         t, v = exc_info[:2]
-        if isinstance(t, ClassType):
+        if isinstance(t, ClassType) or isinstance(t, type):
             if issubclass(t, Redirect):
                 self.redirect(v.getLocation())
                 return



More information about the Checkins mailing list