[Zope3-checkins] CVS: Zope3/src/zope/app/event/tests - placelesssetup.py:1.4
Steve Alexander
steve@cat-box.net
Mon, 27 Jan 2003 13:51:05 -0500
Update of /cvs-repository/Zope3/src/zope/app/event/tests
In directory cvs.zope.org:/tmp/cvs-serv16811/src/zope/app/event/tests
Modified Files:
placelesssetup.py
Log Message:
Fixed subscriber that didn't declare itsself to be an ISubscriber.
=== Zope3/src/zope/app/event/tests/placelesssetup.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/event/tests/placelesssetup.py:1.3 Mon Dec 30 09:03:05 2002
+++ Zope3/src/zope/app/event/tests/placelesssetup.py Mon Jan 27 13:51:01 2003
@@ -18,13 +18,15 @@
"""
from zope.component import getServiceManager
-from zope.app.interfaces.event import IPublisher
+from zope.app.interfaces.event import IPublisher, ISubscriber
from zope.app.event.globalservice import eventPublisher
from zope.interface import Interface
events = []
class EventRecorderClass:
+ __implements__ = ISubscriber
+
notify = events.append
EventRecorder = EventRecorderClass()