[Zope3-checkins] CVS: Zope3/src/zope/app/tests - ztapi.py:1.7
Maru Newby
maru at thesprawl.net
Mon Mar 22 19:23:13 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/tests
In directory cvs.zope.org:/tmp/cvs-serv9689/src/zope/app/tests
Modified Files:
ztapi.py
Log Message:
Added subscribe method that enables registration of subscription adapters.
=== Zope3/src/zope/app/tests/ztapi.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/tests/ztapi.py:1.6 Mon Mar 15 15:42:20 2004
+++ Zope3/src/zope/app/tests/ztapi.py Mon Mar 22 19:23:12 2004
@@ -62,6 +62,10 @@
required = [required]
s.register(required, provided, name, factory)
+
+def subscribe(required, provided, factory):
+ s = zapi.getService(None, Adapters)
+ s.subscribe(required, provided, factory)
def provideUtility(provided, component, name=''):
s = zapi.getService(None, Utilities)
More information about the Zope3-Checkins
mailing list