[Zope3-checkins] CVS: Zope3/src/zope/component - __init__.py:1.19
factory.py:1.8 presentation.py:1.7 service.py:1.8 utility.py:1.8
Jim Fulton
jim at zope.com
Fri Mar 5 17:09:56 EST 2004
Update of /cvs-repository/Zope3/src/zope/component
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/component
Modified Files:
__init__.py factory.py presentation.py service.py utility.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/component/__init__.py 1.18 => 1.19 ===
--- Zope3/src/zope/component/__init__.py:1.18 Tue Mar 2 09:25:21 2004
+++ Zope3/src/zope/component/__init__.py Fri Mar 5 17:09:25 2004
@@ -95,7 +95,7 @@
if adapter is not None:
return adapter
- if interface.isImplementedBy(object):
+ if interface.providedBy(object):
return object
return queryNamedAdapter(object, interface, name, default, context)
=== Zope3/src/zope/component/factory.py 1.7 => 1.8 ===
--- Zope3/src/zope/component/factory.py:1.7 Tue Mar 2 09:26:16 2004
+++ Zope3/src/zope/component/factory.py Fri Mar 5 17:09:25 2004
@@ -52,7 +52,7 @@
# arguments well. For example, I was not able to register any factory
# that requires constructor arguments! (SR)
# verifyObject(IFactory, factory)
- assert IFactory.isImplementedBy(factory)
+ assert IFactory.providedBy(factory)
self.__factories[name] = factory
if info is not None:
self.__info[name] = info
=== Zope3/src/zope/component/presentation.py 1.6 => 1.7 ===
--- Zope3/src/zope/component/presentation.py:1.6 Mon Feb 9 02:41:20 2004
+++ Zope3/src/zope/component/presentation.py Fri Mar 5 17:09:25 2004
@@ -364,7 +364,7 @@
ifaces = []
for context in contexts:
- if not IInterface.isImplementedBy(context) and context is not None:
+ if not IInterface.providedBy(context) and context is not None:
if not isinstance(context, (type, ClassType)):
raise TypeError(context, IInterface)
context = zope.interface.implementedBy(context)
=== Zope3/src/zope/component/service.py 1.7 => 1.8 ===
--- Zope3/src/zope/component/service.py:1.7 Wed Dec 3 00:41:43 2003
+++ Zope3/src/zope/component/service.py Fri Mar 5 17:09:25 2004
@@ -93,7 +93,7 @@
if name not in self.__defs:
raise UndefinedService(name)
- if not self.__defs[name].isImplementedBy(component):
+ if not self.__defs[name].providedBy(component):
raise InvalidService(name, component, self.__defs[name])
if isinstance(component, GlobalService):
=== Zope3/src/zope/component/utility.py 1.7 => 1.8 ===
--- Zope3/src/zope/component/utility.py:1.7 Thu Jan 29 12:36:49 2004
+++ Zope3/src/zope/component/utility.py Fri Mar 5 17:09:25 2004
@@ -39,7 +39,7 @@
def provideUtility(self, providedInterface, component, name=''):
"""See IGlobalUtilityService interface"""
- if not providedInterface.isImplementedBy(component):
+ if not providedInterface.providedBy(component):
raise Invalid("The registered component doesn't implement "
"the promised interface.")
More information about the Zope3-Checkins
mailing list