[Zope3-checkins] CVS: Zope3/src/zope/app/event - __init__.py:1.14
Jim Fulton
jim at zope.com
Tue Apr 27 06:54:16 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/event
In directory cvs.zope.org:/tmp/cvs-serv1711/src/zope/app/event
Modified Files:
__init__.py
Log Message:
Removed dependence on zapi, since this module is used by zapi.
Modules that implement zapi can't use zapi.
=== Zope3/src/zope/app/event/__init__.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/event/__init__.py:1.13 Sat Mar 13 18:55:00 2004
+++ Zope3/src/zope/app/event/__init__.py Tue Apr 27 06:53:45 2004
@@ -14,13 +14,13 @@
"""
$Id$
"""
-from zope.app import zapi
+from zope.component import getService
from zope.app.servicenames import EventPublication
from zope.app.event.interfaces import IEvent
from zope.app.event.globalservice import eventPublisher
def getEventService(context): # the "publish" service
- return zapi.getService(context, EventPublication)
+ return getService(context, EventPublication)
def publish(context, event):
return getEventService(context).publish(event)
More information about the Zope3-Checkins
mailing list