[Zope-Checkins] SVN: Zope/trunk/lib/python/ZPublisher/HTTPResponse.py - Fixed another check for new-style exceptions. Patch by David Glick from One/Northwest.

Sidnei da Silva sidnei at enfoldsystems.com
Mon Nov 3 21:07:13 EST 2008


Log message for revision 92768:
   - Fixed another check for new-style exceptions. Patch by David Glick from One/Northwest.

Changed:
  U   Zope/trunk/lib/python/ZPublisher/HTTPResponse.py

-=-
Modified: Zope/trunk/lib/python/ZPublisher/HTTPResponse.py
===================================================================
--- Zope/trunk/lib/python/ZPublisher/HTTPResponse.py	2008-11-04 00:30:26 UTC (rev 92767)
+++ Zope/trunk/lib/python/ZPublisher/HTTPResponse.py	2008-11-04 02:07:11 UTC (rev 92768)
@@ -725,7 +725,7 @@
             t, v, tb = sys.exc_info()
 
         if t == 'Unauthorized' or t == Unauthorized or (
-            isinstance(t, types.ClassType) and issubclass(t, Unauthorized)):
+            isinstance(t, (type, types.ClassType)) and issubclass(t, Unauthorized)):
             t = 'Unauthorized'
             self._unauthorized()
 



More information about the Zope-Checkins mailing list