[Zope3-checkins] CVS: Zope3/src/zope/app/process - bootstrap.py:1.21 simpleregistry.py:1.4

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


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

Modified Files:
	bootstrap.py simpleregistry.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/process/bootstrap.py 1.20 => 1.21 ===
--- Zope3/src/zope/app/process/bootstrap.py:1.20	Fri Mar  5 10:55:33 2004
+++ Zope3/src/zope/app/process/bootstrap.py	Fri Mar  5 17:09:11 2004
@@ -100,7 +100,7 @@
         package = getServiceManagerDefault(self.root_folder)
         valid_objects = [ name
                           for name in package
-                          if object_type.isImplementedBy(package[name]) ]
+                          if object_type.providedBy(package[name]) ]
         if valid_objects:
             return None
         name = object_name


=== Zope3/src/zope/app/process/simpleregistry.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/process/simpleregistry.py:1.3	Fri Aug 15 20:43:41 2003
+++ Zope3/src/zope/app/process/simpleregistry.py	Fri Mar  5 17:09:11 2004
@@ -71,7 +71,7 @@
         if name in self.objects.keys():
             raise ZopeDuplicateRegistryEntryError(name)
 
-        if self.interface.isImplementedBy(object):
+        if self.interface.providedBy(object):
             self.objects[name] = object
         else:
             raise ZopeIllegalInterfaceError(name, self.interface)




More information about the Zope3-Checkins mailing list