[Zope3-dev] bootstrap event problems
Gary Poster
gary@modernsongs.com
Thu, 13 Feb 2003 22:22:32 -0500
I fixed it. You were exactly right.
Thanks
Gary
Gary Poster wrote:
> I was able to replicate. I'll try to look at this tomorrow.
>
> sean.bowman@acm.org wrote:
>
>> 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
>>
>>
>>
>> _______________________________________________
>> Zope3-dev mailing list
>> Zope3-dev@zope.org
>> http://mail.zope.org/mailman/listinfo/zope3-dev
>>
>>
>
>
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-dev
>
>