[Zope3-checkins] CVS: Zope3/lib/python/Zope/Event - GlobalEventService.py:1.4 IEventService.py:1.5 __init__.py:1.4

Jim Fulton jim@zope.com
Sun, 1 Dec 2002 05:32:30 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Event
In directory cvs.zope.org:/tmp/cvs-serv3545/lib/python/Zope/Event

Modified Files:
	GlobalEventService.py IEventService.py __init__.py 
Log Message:
Renamed publishEvent to publish

=== Zope3/lib/python/Zope/Event/GlobalEventService.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/Event/GlobalEventService.py:1.3	Thu Aug  1 11:33:45 2002
+++ Zope3/lib/python/Zope/Event/GlobalEventService.py	Sun Dec  1 05:32:29 2002
@@ -24,7 +24,7 @@
     
     __implements__ = IEventService
         
-    def publishEvent(self, event):
+    def publish(self, event):
         
         for subscriptions in self.subscriptionsForEvent(event):
             


=== Zope3/lib/python/Zope/Event/IEventService.py 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/Event/IEventService.py:1.4	Mon Nov 11 03:33:45 2002
+++ Zope3/lib/python/Zope/Event/IEventService.py	Sun Dec  1 05:32:29 2002
@@ -28,7 +28,7 @@
     when they are generated.
     """
     
-    def publishEvent(event):
+    def publish(event):
         """Notify all subscribers of the channel of event.
 
         Events will often be propagated to higher level IEventServices;


=== Zope3/lib/python/Zope/Event/__init__.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/Event/__init__.py:1.3	Wed Oct  9 02:19:06 2002
+++ Zope3/lib/python/Zope/Event/__init__.py	Sun Dec  1 05:32:29 2002
@@ -24,10 +24,8 @@
 def getEventService(context):
     return getService(context, 'Events')
 
-def publishEvent(context, event):
-    return getEventService(context).publishEvent(event)
-
-publish = publishEvent
+def publish(context, event):
+    return getEventService(context).publish(event)
 
 def subscribe(subscriber, event_type=IEvent, filter=None, context=None):
     if context is None: context=subscriber