[Zope3-dev] ObjectHub: Kill the plugins!

Steve Alexander steve@cat-box.net
Mon, 21 Oct 2002 11:28:34 +0000


> This is a significant use case we need to address
> soon, but it essentially comes down to (a) the subscriber being able to
> know what objecthub sent it the message, so it can send one back, and
> (b) a method on the objecthub for subscribers to call in that situation
> (some kind of notify variation).  We would probably need (b) anyway, and
> (a) can be solved in a number of ways that are not tied to plugins.

Ok. I propose that HubEvents contain a reference to their ObjectHub 
(probably an in-context reference) that can be used by subscribers to 
know which objecthub sent the event. This makes a lot of sense to me, as 
HubIds are only Ids relative to a particular ObjectHub.

--
Steve Alexander