[Zope3-checkins] CVS: Zope3/src/zope/app/event/tests -
test_objectevent.py:1.9
Jim Fulton
jim at zope.com
Mon Mar 15 15:41:44 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/event/tests
In directory cvs.zope.org:/tmp/cvs-serv3084/src/zope/app/event/tests
Modified Files:
test_objectevent.py
Log Message:
Changed to reflect changes in subscription api
=== Zope3/src/zope/app/event/tests/test_objectevent.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/event/tests/test_objectevent.py:1.8 Sat Mar 13 18:55:00 2004
+++ Zope3/src/zope/app/event/tests/test_objectevent.py Mon Mar 15 15:41:43 2004
@@ -61,8 +61,8 @@
events = []
factory = objectevent.objectEventCallbackHelper(events.append)
- getService(None, Adapters).provideSubscriptionAdapter(
- IContained, ISubscriber, [factory], with=[IObjectRemovedEvent]
+ getService(None, Adapters).subscribe(
+ [IContained, IObjectRemovedEvent], ISubscriber, factory
)
item = Contained()
@@ -99,8 +99,8 @@
raise Veto
factory = objectevent.objectEventCallbackHelper(callback)
- getService(None, Adapters).provideSubscriptionAdapter(
- IContained, ISubscriber, [factory], with=[IObjectRemovedEvent]
+ getService(None, Adapters).subscribe(
+ [IContained, IObjectRemovedEvent], ISubscriber, factory
)
# del container['Fred'] will fire an ObjectRemovedEvent event.
More information about the Zope3-Checkins
mailing list