[Zope3-checkins] CVS: Zope3/lib/python/Zope/Event - __init__.py:1.3
Jim Fulton
jim@zope.com
Wed, 9 Oct 2002 02:19:06 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Event
In directory cvs.zope.org:/tmp/cvs-serv23428/lib/python/Zope/Event
Modified Files:
__init__.py
Log Message:
Added alias of "publish" for "publishEvent". I'd like to rename
publishEvent to publish, but don't have time for this right now.
=== Zope3/lib/python/Zope/Event/__init__.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/Event/__init__.py:1.2 Mon Jun 10 19:29:25 2002
+++ Zope3/lib/python/Zope/Event/__init__.py Wed Oct 9 02:19:06 2002
@@ -27,6 +27,8 @@
def publishEvent(context, event):
return getEventService(context).publishEvent(event)
+publish = publishEvent
+
def subscribe(subscriber, event_type=IEvent, filter=None, context=None):
if context is None: context=subscriber
return getEventService(context).subscribe(