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()
 

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to