[Zope3-dev] bootstrap event problems
sean.bowman@acm.org
sean.bowman@acm.org
Wed, 12 Feb 2003 20:34:25 -0600 (CST)
hi all,
I found a problem in zope.app.services.event:
ServiceSubscriberEventChannel tries to subscribe to the wrong service in
its 'bound' method. This is a problem since the HubIds service needs to
subscribe to the Subscription service when bound. This happens when
bootstrapping Data.fs among other times.
Unfortunatly when I fix the problem (a patch appears below), I get a
heinous error during bootstrapping. I believe the problem is that
zope.app.event.subs.getWaysToSubscribe looks for the object hub before
it's been added. (I might be wrong about this.)
I'd love to fix this problem if somebody will give me a clue.
Sean
Index: src/zope/app/services/event.py
===================================================================
RCS file: /cvs-repository/Zope3/src/zope/app/services/event.py,v
retrieving revision 1.11
diff -u -r1.11 event.py
--- src/zope/app/services/event.py 12 Feb 2003 02:17:34 -0000
1.11
+++ src/zope/app/services/event.py 13 Feb 2003 02:24:32 -0000
@@ -147,7 +147,7 @@
# the name of the service that this object is providing, or
# None if unbound
- _subscribeToServiceName = "Subscriptions"
+ _subscribeToServiceName = Subscription
_subscribeToServiceInterface = IEvent
_subscribeToServiceFilter = None