[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/intid/__init__.py
Add an explicit context to the getAllUtilitiesRegisteredFor
lookup of the removeIntIdSubscriber and the addIntIdSubsriber
Dominik Huber
dominik.huber at projekt01.ch
Tue Nov 30 07:05:25 EST 2004
Log message for revision 28540:
Add an explicit context to the getAllUtilitiesRegisteredFor lookup of the removeIntIdSubscriber and the addIntIdSubsriber
Changed:
U Zope3/trunk/src/zope/app/intid/__init__.py
-=-
Modified: Zope3/trunk/src/zope/app/intid/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/intid/__init__.py 2004-11-30 00:44:53 UTC (rev 28539)
+++ Zope3/trunk/src/zope/app/intid/__init__.py 2004-11-30 12:05:25 UTC (rev 28540)
@@ -119,7 +119,7 @@
# Notify the catalogs that this object is about to be removed.
notify(IntIdRemovedEvent(ob, event))
- for utility in zapi.getAllUtilitiesRegisteredFor(IIntIds):
+ for utility in zapi.getAllUtilitiesRegisteredFor(IIntIds, ob):
try:
utility.unregister(ob)
except KeyError:
@@ -131,7 +131,7 @@
Registers the object added in all unique id utilities and fires
an event for the catalogs.
"""
- for utility in zapi.getAllUtilitiesRegisteredFor(IIntIds):
+ for utility in zapi.getAllUtilitiesRegisteredFor(IIntIds, ob):
utility.register(ob)
notify(IntIdAddedEvent(ob, event))
More information about the Zope3-Checkins
mailing list