[Zope3-checkins] CVS: Zope3/src/zope/app/catalog - catalog.py:1.1.2.4
Anthony Baxter
anthony@interlink.com.au
Sat, 12 Jul 2003 20:57:56 -0400
Update of /cvs-repository/Zope3/src/zope/app/catalog
In directory cvs.zope.org:/tmp/cvs-serv10515
Modified Files:
Tag: melb-2003-content-catalog-branch
catalog.py
Log Message:
cleanups
=== Zope3/src/zope/app/catalog/catalog.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zope/app/catalog/catalog.py:1.1.2.3 Sat Jul 12 05:13:47 2003
+++ Zope3/src/zope/app/catalog/catalog.py Sat Jul 12 20:57:51 2003
@@ -7,7 +7,6 @@
from zope.exceptions import NotFoundError
from zope.app.interfaces.services.registration import IRegisterable
from zope.app.interfaces.event import ISubscriber
-from zope.app.interfaces.container import IDeleteNotifiable
from zope.app.interfaces.annotation import IAttributeAnnotatable
from zope.app.interfaces.services.utility import ILocalUtility
@@ -93,17 +92,14 @@
unsubscribeEvents = ContextMethod(unsubscribeEvents)
def notify(wrapped_self, event):
- "somebody loves us! indexes api sucks, we just pass on the event"
+ "objecthub is my friend!"
indexes = wrapped_self.values()
if (IHub.IObjectRegisteredHubEvent.isImplementedBy(event) or
IHub.IObjectModifiedHubEvent.isImplementedBy(event)):
addobj = event.object
- print "got a new object! it's a ", addobj, event.hubid
elif IHub.IObjectUnregisteredHubEvent.isImplementedBy(event):
delobj = event.object
- print "got a del object! it's a ", delobj, event.hubid
- [ index.notify(event) for index in indexes ]
for index in indexes:
try:
index.notify(event)