[Zope3-checkins] CVS: Zope3/src/zope/app/location - __init__.py:1.2

Jim Fulton jim at zope.com
Fri Mar 5 17:10:14 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/location
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/location

Modified Files:
	__init__.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/location/__init__.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/location/__init__.py:1.1	Tue Mar  2 12:51:52 2004
+++ Zope3/src/zope/app/location/__init__.py	Fri Mar  5 17:09:10 2004
@@ -111,7 +111,7 @@
         context = self.context
         max = 9999
         while context is not None:
-            if IContainmentRoot.isImplementedBy(context):
+            if IContainmentRoot.providedBy(context):
                 return context
             context = context.__parent__
             max -= 1
@@ -169,7 +169,7 @@
         context = self.context
         max = 9999
         while context is not None:
-            if IContainmentRoot.isImplementedBy(context):
+            if IContainmentRoot.providedBy(context):
                 if path:
                     path.append('')
                     path.reverse()
@@ -199,10 +199,10 @@
 
     def getNearestSite(self):
         "return the nearest site, see IPhysicallyLocatable"
-        if ISite.isImplementedBy(self.context):
+        if ISite.providedBy(self.context):
             return self.context
         for parent in zapi.getParents(self.context):
-            if ISite.isImplementedBy(parent):
+            if ISite.providedBy(parent):
                 return parent
         return self.getRoot()
 
@@ -354,7 +354,7 @@
         self.load = self.others_by_pid.get
 
     def id(self, object):
-        if ILocation.isImplementedBy(object):
+        if ILocation.providedBy(object):
             if not inside(object, self.location):
                 if id(object) in self.pids_by_id:
                     return self.pids_by_id[id(object)]
@@ -435,7 +435,7 @@
         self.location = location
 
     def id(self, object):
-        if ILocation.isImplementedBy(object):
+        if ILocation.providedBy(object):
             if not inside(object, self.location):
                 return LocationPhysicallyLocatable(object).getPath()
 




More information about the Zope3-Checkins mailing list