[Zope-CVS] CVS: Products/Event - EventService.py:1.3

Ken Manheimer klm@zope.com
Thu, 8 Aug 2002 17:47:40 -0400


Update of /cvs-repository/Products/Event
In directory cvs.zope.org:/tmp/cvs-serv15584

Modified Files:
	EventService.py 
Log Message:
publishEvent(): Filter the event acquired from the context (or self,
if no context specified), to assure that there *is* an acquisition
context.


=== Products/Event/EventService.py 1.2 => 1.3 ===
--- Products/Event/EventService.py:1.2	Sun Jun 30 02:35:04 2002
+++ Products/Event/EventService.py	Thu Aug  8 17:47:39 2002
@@ -65,7 +65,7 @@
         for subscriptions in subscriptions_collection:
             for subscriber,filter in subscriptions:
                 if filter is not None:
-                    if not filter(event):
+                    if not filter(event.__of__(context)):
                         continue
                 subscriber = subscriber.__of__(context)
                 subscriber.notify(event)