[Zope3-checkins] CVS: Zope3/src/zope/app/event - subs.py:1.17
Steve Alexander
steve@cat-box.net
Sun, 8 Jun 2003 12:22:04 -0400
Update of /cvs-repository/Zope3/src/zope/app/event
In directory cvs.zope.org:/tmp/cvs-serv30621/src/zope/app/event
Modified Files:
subs.py
Log Message:
Corrected persistence problem reported by Marcul J Ertl.
I'll look through this area of code to see if there are similar problems.
=== Zope3/src/zope/app/event/subs.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/event/subs.py:1.16 Sat Jun 7 02:37:24 2003
+++ Zope3/src/zope/app/event/subs.py Sun Jun 8 12:22:03 2003
@@ -105,8 +105,9 @@
subscribers = clean_self._registry.get(ev_type)
if subscribers is None:
subscribers = []
- clean_self._registry.register(ev_type, subscribers)
subscribers.append((token, filter))
+ # Ensure that type registry is triggered for persistence
+ clean_self._registry.register(ev_type, subscribers)
# increment the subscription count for this subscriber
if reftype is int: