[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - bundle.py:1.13 cache.py:1.18 connection.py:1.22 field.py:1.16

Jim Fulton jim at zope.com
Fri Mar 5 17:09:56 EST 2004


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

Modified Files:
	bundle.py cache.py connection.py field.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/browser/services/bundle.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/browser/services/bundle.py:1.12	Wed Mar  3 05:38:35 2004
+++ Zope3/src/zope/app/browser/services/bundle.py	Fri Mar  5 17:08:55 2004
@@ -252,7 +252,7 @@
 
     def findServiceRegistration(self, name):
         for path, obj in self.registrations:
-            if IServiceRegistration.isImplementedBy(obj):
+            if IServiceRegistration.providedBy(obj):
                 if obj.name == name:
                     return path
         return None
@@ -260,9 +260,9 @@
     def findRegistrations(self, f, prefix):
         alist = []
         for name, obj in f.items():
-            if IRegistration.isImplementedBy(obj):
+            if IRegistration.providedBy(obj):
                 alist.append((prefix+name, obj))
-            elif IReadContainer.isImplementedBy(obj):
+            elif IReadContainer.providedBy(obj):
                 alist.extend(self.findRegistrations(obj, prefix+name+"/"))
         return alist
 


=== Zope3/src/zope/app/browser/services/cache.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/browser/services/cache.py:1.17	Mon Mar  1 05:57:34 2004
+++ Zope3/src/zope/app/browser/services/cache.py	Fri Mar  5 17:08:55 2004
@@ -51,7 +51,7 @@
     menu_id = "add_cache"
 
     def add(self, content):
-        if not ICache.isImplementedBy(content):
+        if not ICache.providedBy(content):
             error = _("${object} is not a Cache.")
             error.mapping['object'] = str(content)
             raise TypeError(error)


=== Zope3/src/zope/app/browser/services/connection.py 1.21 => 1.22 ===
--- Zope3/src/zope/app/browser/services/connection.py:1.21	Tue Mar  2 08:48:25 2004
+++ Zope3/src/zope/app/browser/services/connection.py	Fri Mar  5 17:08:55 2004
@@ -52,7 +52,7 @@
     menu_id = "add_connection"
 
     def add(self, content):
-        if not IZopeDatabaseAdapter.isImplementedBy(content):
+        if not IZopeDatabaseAdapter.providedBy(content):
             error = _("${object} is not a Zope database adapter.")
             error.mapping['object'] = str(content)
 


=== Zope3/src/zope/app/browser/services/field.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/browser/services/field.py:1.15	Fri Nov 21 12:11:32 2003
+++ Zope3/src/zope/app/browser/services/field.py	Fri Mar  5 17:08:55 2004
@@ -52,7 +52,7 @@
     """
     o = ob
     while 1:
-        if IRegistrationManagerContainer.isImplementedBy(o):
+        if IRegistrationManagerContainer.providedBy(o):
             break
         if o is None:
             raise ValueError(o, "is not in a service manager container")
@@ -61,7 +61,7 @@
     result = []
     for name in o:
         value = o[name]
-        if type.isImplementedBy(value):
+        if type.providedBy(value):
             result.append({'path': zapi.getPath(value),
                            'component': value,
                            })




More information about the Zope3-Checkins mailing list