[Zope3-checkins] CVS: Zope3/src/zope/security - checker.py:1.38

Garrett Smith garrett at mojave-corp.com
Fri Aug 15 16:50:29 EDT 2003


Update of /cvs-repository/Zope3/src/zope/security
In directory cvs.zope.org:/tmp/cvs-serv6308/src/zope/security

Modified Files:
	checker.py 
Log Message:
Modified the arguments for ForbiddenAttribute to include the object whose attribute is forbidden. 

=== Zope3/src/zope/security/checker.py 1.37 => 1.38 ===
--- Zope3/src/zope/security/checker.py:1.37	Tue Jun 24 14:58:12 2003
+++ Zope3/src/zope/security/checker.py	Fri Aug 15 15:49:55 2003
@@ -151,7 +151,7 @@
                 raise Unauthorized, name
 
         __traceback_supplement__ = (TracebackSupplement, object)
-        raise ForbiddenAttribute, name
+        raise ForbiddenAttribute, (name, object)
 
     def check(self, object, name):
         'See IChecker'
@@ -170,7 +170,7 @@
 
         if name != '__iter__' or hasattr(object, name):
             __traceback_supplement__ = (TracebackSupplement, object)
-            raise ForbiddenAttribute, name
+            raise ForbiddenAttribute, (name, object)
 
     def proxy(self, value):
         'See IChecker'




More information about the Zope3-Checkins mailing list