[Zope-Checkins] CVS: Zope3/lib/python/Zope/Security - IChecker.py:1.1.2.9

Guido van Rossum guido@python.org
Thu, 18 Apr 2002 15:21:08 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Security
In directory cvs.zope.org:/tmp/cvs-serv15545

Modified Files:
      Tag: SecurityProxy-branch
	IChecker.py 
Log Message:
The checker's return value is no longer used.


=== Zope3/lib/python/Zope/Security/IChecker.py 1.1.2.8 => 1.1.2.9 ===
     operations.
 
-    The check_* methods may raise errors.  They return values that
-    must be passed to the proxy methods.
+    The check_* methods may raise errors.  They return no value.
 
-           checked = checker.check_getitem(ob, key)
-           return checker.proxy(ob[key], checked)
+           checker.check_getitem(ob)
+           return checker.proxy(ob[key])
 
     Note that two different naming conventions are used to separate
     the individual operation checkers from other methods.
@@ -96,8 +95,6 @@
         """.
 
 
-    def proxy(value, checked):
+    def proxy(value):
         """Return a security proxy for the value.
-
-        The second argument passed is the return value from a checker.
         """