[Zope3-checkins] CVS: Zope3/src/zope/app/index - __init__.py:1.8

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


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

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

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/index/__init__.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/index/__init__.py:1.7	Tue Mar  2 13:51:00 2004
+++ Zope3/src/zope/app/index/__init__.py	Fri Mar  5 17:09:08 2004
@@ -66,12 +66,12 @@
 
     def notify(self, event):
         """An event occurred.  Index or unindex the object in response."""
-        if (IObjectRegisteredHubEvent.isImplementedBy(event) or
-            IObjectModifiedHubEvent.isImplementedBy(event)):
+        if (IObjectRegisteredHubEvent.providedBy(event) or
+            IObjectModifiedHubEvent.providedBy(event)):
             value = self._getValue(event.object)
             if value is not None:
                 self.index_doc(event.hubid, value)
-        elif IObjectUnregisteredHubEvent.isImplementedBy(event):
+        elif IObjectUnregisteredHubEvent.providedBy(event):
             try:
                 self.unindex_doc(event.hubid)
             except KeyError:




More information about the Zope3-Checkins mailing list