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

nikhil n nikhil.n.n at gmail.com
Mon Aug 20 12:44:09 EDT 2007


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

Changed:
  U   zope.publisher/branches/3.4/src/zope/publisher/http.py

-=-
Modified: zope.publisher/branches/3.4/src/zope/publisher/http.py
===================================================================
--- zope.publisher/branches/3.4/src/zope/publisher/http.py	2007-08-20 16:25:49 UTC (rev 79036)
+++ zope.publisher/branches/3.4/src/zope/publisher/http.py	2007-08-20 16:44:08 UTC (rev 79037)
@@ -822,7 +822,7 @@
         Calls self.setBody() with an error response.
         """
         t, v = exc_info[:2]
-        if isinstance(t, ClassType):
+        if isinstance(t, (ClassType, type)):    
             if issubclass(t, Redirect):
                 self.redirect(v.getLocation())
                 return



More information about the Checkins mailing list