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

Jim Fulton cvs-admin at zope.org
Wed Dec 3 00:41:51 EST 2003


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

Modified Files:
	checker.py 
Log Message:
Added security declarations for zope.interface.interface.Method. This
is necessary to get preconditions from security-proxied interfaces.


=== Zope3/src/zope/security/checker.py 1.42 => 1.43 ===
--- Zope3/src/zope/security/checker.py:1.42	Fri Nov 21 12:12:43 2003
+++ Zope3/src/zope/security/checker.py	Wed Dec  3 00:41:50 2003
@@ -26,6 +26,8 @@
 import types
 import datetime
 import weakref
+import zope.interface.interface
+import zope.interface.interfaces
 
 from zope.interface import directlyProvides, Interface, implements
 from zope.interface.interfaces import IInterface, IDeclaration
@@ -743,6 +745,8 @@
                                       __str__=CheckerPublic,
                                       _implied=CheckerPublic,
                                       subscribe=CheckerPublic),
+    zope.interface.interface.Method: InterfaceChecker(
+                                        zope.interface.interfaces.IMethod),
     ProvidesClass: _Declaration_checker,
     Implements: _Declaration_checker,
     Declaration: _Declaration_checker,




More information about the Zope3-Checkins mailing list