[Zope3-checkins] SVN: Zope3/trunk/src/zope/security/checker.py Reverting checkin just made, because a test failed. The test explained why

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Sep 16 16:36:06 EDT 2005


Log message for revision 38496:
  Reverting checkin just made, because a test failed. The test explained why 
  it wants this behavior. While I disagree with the reasoning, I am too 
  tired right now to pick the fight and risk a lot of breakage.
  
  

Changed:
  U   Zope3/trunk/src/zope/security/checker.py

-=-
Modified: Zope3/trunk/src/zope/security/checker.py
===================================================================
--- Zope3/trunk/src/zope/security/checker.py	2005-09-16 20:28:47 UTC (rev 38495)
+++ Zope3/trunk/src/zope/security/checker.py	2005-09-16 20:36:06 UTC (rev 38496)
@@ -95,7 +95,7 @@
     checker = getChecker(obj)
     try:
         checker.check_setattr(obj, name)
-    except (Unauthorized, ForbiddenAttribute):
+    except Unauthorized:
         return False
     # if it is Forbidden (or anything else), let it be raised: it probably
     # indicates a programming or configuration error
@@ -113,7 +113,7 @@
     checker = getChecker(obj)
     try:
         checker.check_getattr(obj, name)
-    except (Unauthorized, ForbiddenAttribute):
+    except Unauthorized:
         return False
     # if it is Forbidden (or anything else), let it be raised: it probably
     # indicates a programming or configuration error



More information about the Zope3-Checkins mailing list