[Zope3-checkins] CVS: Zope3/src/zope/app/traversing -
__init__.py:1.25 namespace.py:1.25
Jim Fulton
jim at zope.com
Fri Mar 5 17:09:51 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/traversing
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/traversing
Modified Files:
__init__.py namespace.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/app/traversing/__init__.py 1.24 => 1.25 ===
--- Zope3/src/zope/app/traversing/__init__.py:1.24 Sun Sep 21 13:31:14 2003
+++ Zope3/src/zope/app/traversing/__init__.py Fri Mar 5 17:09:19 2004
@@ -131,7 +131,7 @@
parent.
"""
- if IContainmentRoot.isImplementedBy(obj):
+ if IContainmentRoot.providedBy(obj):
return None
parent = getattr(obj, '__parent__', None)
@@ -149,7 +149,7 @@
Raises a TypeError if the context doesn't go all the way down to
a containment root.
"""
- if IContainmentRoot.isImplementedBy(obj):
+ if IContainmentRoot.providedBy(obj):
return []
@@ -161,7 +161,7 @@
break
parents.append(w)
- if parents and IContainmentRoot.isImplementedBy(parents[-1]):
+ if parents and IContainmentRoot.providedBy(parents[-1]):
return parents
raise TypeError, "Not enough context information to get all parents"
=== Zope3/src/zope/app/traversing/namespace.py 1.24 => 1.25 ===
--- Zope3/src/zope/app/traversing/namespace.py:1.24 Tue Feb 24 11:51:05 2004
+++ Zope3/src/zope/app/traversing/namespace.py Fri Mar 5 17:09:19 2004
@@ -164,7 +164,7 @@
raise UnexpectedParameters(parameters)
if (name in ('process', 'ApplicationController')
- and IContainmentRoot.isImplementedBy(ob)):
+ and IContainmentRoot.providedBy(ob)):
return applicationController
if name not in ('site', 'Services'):
More information about the Zope3-Checkins
mailing list