[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
Jim Fulton
jim at zope.com
Tue Nov 30 09:12:45 EST 2004
Dominik Huber wrote:
> Log message for revision 28540:
> Add an explicit context to the getAllUtilitiesRegisteredFor lookup of the removeIntIdSubscriber and the addIntIdSubsriber
What is the reason for this change?
Also, where are the test changes?
Jim
> 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))
>
> _______________________________________________
> Zope3-Checkins mailing list
> Zope3-Checkins at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-checkins
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-Checkins
mailing list