[Zope3-checkins] CVS: Zope3/src/zope/app/container -
contained.py:1.21
Jim Fulton
jim at zope.com
Mon Mar 15 15:42:35 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/container
In directory cvs.zope.org:/tmp/cvs-serv3290/src/zope/app/container
Modified Files:
contained.py
Log Message:
Adapters and views are now registered with a single factory, not a
sequence of factories.
=== Zope3/src/zope/app/container/contained.py 1.20 => 1.21 ===
--- Zope3/src/zope/app/container/contained.py:1.20 Sat Mar 13 23:03:30 2004
+++ Zope3/src/zope/app/container/contained.py Mon Mar 15 15:41:58 2004
@@ -242,12 +242,12 @@
>>> from zope.app.event.interfaces import ISubscriber
>>> factory = objectEventCallbackHelper(
... lambda event: event.object.setAdded(event))
- >>> getService(None, Adapters).provideSubscriptionAdapter(
- ... IItem, ISubscriber, [factory], with=[IObjectAddedEvent])
+ >>> getService(None, Adapters).subscribe(
+ ... [IItem,IObjectAddedEvent], ISubscriber, factory)
>>> factory = objectEventCallbackHelper(
... lambda event: event.object.setMoved(event))
- >>> getService(None, Adapters).provideSubscriptionAdapter(
- ... IItem, ISubscriber, [factory], with=[IObjectMovedEvent])
+ >>> getService(None, Adapters).subscribe(
+ ... [IItem, IObjectMovedEvent], ISubscriber, factory)
>>> item = Item()
>>> container = {}
More information about the Zope3-Checkins
mailing list