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

R. David Murray bitz@bitdance.com
Sat, 25 Jan 2003 00:13:52 -0500


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

Modified Files:
	checker.py 
Log Message:
Use keyword instead of positional arg (and Boolean instead of 1)
to make it more obvious to someone browsing the code what is going
on when the interface 'names' method is called.


=== Zope3/src/zope/security/checker.py 1.4 => 1.5 ===
--- Zope3/src/zope/security/checker.py:1.4	Wed Jan  8 15:18:33 2003
+++ Zope3/src/zope/security/checker.py	Sat Jan 25 00:13:50 2003
@@ -183,7 +183,7 @@
     return Checker(data.get)
 
 def InterfaceChecker(interface, permission_id=CheckerPublic):
-    return NamesChecker(interface.names(1), permission_id)
+    return NamesChecker(interface.names(all=True), permission_id)
 
 def MultiChecker(specs):
     """Create a checker from a sequence of specifications
@@ -208,7 +208,7 @@
         if type(spec) is tuple:
             names, permission_id = spec
             if IInterface.isImplementedBy(names):
-                names = names.names(1)
+                names = names.names(all=True)
             for name in names:
                 if data.get(name, permission_id) is not permission_id:
                     raise DuplicationError(name)