[Zope3-checkins] CVS: Zope3/src/zope/app/introspector -
__init__.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/introspector
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/introspector
Modified Files:
__init__.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/app/introspector/__init__.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/introspector/__init__.py:1.3 Fri Mar 5 10:54:39 2004
+++ Zope3/src/zope/app/introspector/__init__.py Fri Mar 5 17:09:09 2004
@@ -38,7 +38,7 @@
def isInterface(self):
"Checks if the context is class or interface"
- return IInterface.isImplementedBy(self.context)
+ return IInterface.providedBy(self.context)
def setRequest(self, request):
"""sets the request"""
@@ -170,7 +170,7 @@
markers = self.getDirectMarkersOf(interface)
for interface in markers:
if (interface not in results
- and not interface.isImplementedBy(self.context)):
+ and not interface.providedBy(self.context)):
results.append(interface)
todo += markers
results.sort()
@@ -184,7 +184,7 @@
for interface in interfaces:
# There are things registered with the interface service
# that are not interfaces. Yay!
- if not IInterface.isImplementedBy(interface):
+ if not IInterface.providedBy(interface):
continue
if base in interface.__bases__ and not interface.names():
results.append(interface)
More information about the Zope3-Checkins
mailing list