RE: [Zope3-dev] Sublocation notifications

2005-05-03 Thread Garrett Smith
Gary Poster wrote: > On May 3, 2005, at 5:39 PM, Garrett Smith wrote: > >> We currently dispatch some object events to sublocations. I think >> there's a problem with the current approach. > > ... > > Why not just have your own app listen for (object, event) and then do > this additional dispatc

Re: [Zope3-dev] Sublocation notifications

2005-05-03 Thread Gary Poster
On May 3, 2005, at 5:39 PM, Garrett Smith wrote: We currently dispatch some object events to sublocations. I think there's a problem with the current approach. ... Why not just have your own app listen for (object, event) and then do this additional dispatch? That's the usual pattern, and I'm gue

[Zope3-dev] Sublocation notifications

2005-05-03 Thread Garrett Smith
We currently dispatch some object events to sublocations. I think there's a problem with the current approach. If I subscribe to IObjectModifiedEvent with something like this: def handle(object, event): ... I'll get notifications where object and event.object are different. This happens