[Zope3-checkins] CVS: Zope3/src/zope/security - checker.py:1.45
Jim Fulton
jim at zope.com
Fri Mar 5 17:10:04 EST 2004
Update of /cvs-repository/Zope3/src/zope/security
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/security
Modified Files:
checker.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/security/checker.py 1.44 => 1.45 ===
--- Zope3/src/zope/security/checker.py:1.44 Tue Feb 24 09:01:33 2004
+++ Zope3/src/zope/security/checker.py Fri Mar 5 17:09:32 2004
@@ -280,7 +280,7 @@
setattr_permission_func = setattr_permission_func.get
self._setattr_permission_func = setattr_permission_func
- if INameBasedChecker.isImplementedBy(original_checker):
+ if INameBasedChecker.providedBy(original_checker):
directlyProvides(self, INameBasedChecker)
def permission_id(self, name):
@@ -544,7 +544,7 @@
for spec in specs:
if type(spec) is tuple:
names, permission_id = spec
- if IInterface.isImplementedBy(names):
+ if IInterface.providedBy(names):
names = names.names(all=True)
for name in names:
if data.get(name, permission_id) is not permission_id:
@@ -744,10 +744,13 @@
type(iter({})): _iteratorChecker,
type(iter(_Sequence())): _iteratorChecker,
type(f()): _iteratorChecker,
- type(Interface): InterfaceChecker(IInterface,
- __str__=CheckerPublic,
- _implied=CheckerPublic,
- subscribe=CheckerPublic),
+ type(Interface): InterfaceChecker(
+ IInterface,
+ __str__=CheckerPublic, _implied=CheckerPublic, subscribe=CheckerPublic,
+ # XXX Backward:
+ isImplementedByInstancesOf=CheckerPublic,
+ isImplementedBy=CheckerPublic,
+ ),
zope.interface.interface.Method: InterfaceChecker(
zope.interface.interfaces.IMethod),
ProvidesClass: _Declaration_checker,
More information about the Zope3-Checkins
mailing list