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

Jim Fulton jim at zope.com
Sun Oct 12 16:40:13 EDT 2003


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

Modified Files:
      Tag: adaptergeddon-branch
	checker.py 
Log Message:
Got tests to pass on branch.


=== Zope3/src/zope/security/checker.py 1.40.4.1 => 1.40.4.2 ===
--- Zope3/src/zope/security/checker.py:1.40.4.1	Sat Oct 11 10:19:04 2003
+++ Zope3/src/zope/security/checker.py	Sun Oct 12 16:40:13 2003
@@ -32,7 +32,7 @@
 from zope.interface.interfaces import IInterface, IDeclaration
 from zope.interface.declarations import ProvidesClass
 from zope.interface.declarations import Implements
-from zope.interface.declarations import Declarationt
+from zope.interface.declarations import Declaration
 from zope.security.interfaces import IChecker, INameBasedChecker
 from zope.security.interfaces import ISecurityProxyFactory
 from zope.security.management import getSecurityManager
@@ -702,7 +702,7 @@
     def __len__(self): return 0
     def __getitem__(self, i): raise IndexError
 
-_Declaration_checker = InterfaceChecker(IDeclaration)
+_Declaration_checker = InterfaceChecker(IDeclaration, _implied=CheckerPublic)
 
 def f():
     yield f
@@ -736,7 +736,9 @@
     type(iter({})): _iteratorChecker,
     type(iter(_Sequence())): _iteratorChecker,
     type(f()): _iteratorChecker,
-    type(Interface): InterfaceChecker(IInterface, __str__=CheckerPublic),
+    type(Interface): InterfaceChecker(IInterface,
+                                      __str__=CheckerPublic,
+                                      _implied=CheckerPublic),
     ProvidesClass: _Declaration_checker,
     Implements: _Declaration_checker,
     Declaration: _Declaration_checker,




More information about the Zope3-Checkins mailing list