[Zope-Checkins] CVS: Zope3/lib/python/Zope/Event - EventChannel.py:1.1.2.3
Steve Alexander
steve@cat-box.net
Sun, 24 Feb 2002 16:33:17 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Event
In directory cvs.zope.org:/tmp/cvs-serv28007
Modified Files:
Tag: Zope-3x-branch
EventChannel.py
Log Message:
Made EventChannel.py friendly to persistence
=== Zope3/lib/python/Zope/Event/EventChannel.py 1.1.2.2 => 1.1.2.3 ===
from Zope.Exceptions import NotFoundError
-class EventChannel:
+class EventChannel(object):
__implements__ = IEventChannel
@@ -32,7 +32,9 @@
_clear = __init__
def subscribe(self, subscriber, event_types=(None,), filter=None):
-
+
+ self._p_changed = 1
+
subs = self._subscribers
for event_type in event_types:
@@ -55,6 +57,8 @@
subs_set = self._subscribers[subscriber]
except KeyError:
raise NotFoundError, subscriber
+
+ self._p_changed = 1
for event_type in subs_set:
subscriptions = self._registry.getJustForType(event_type)