[Zope3-dev] event-meta.zcml placement? i18n-meta.zcml?

Steve Alexander s.alexander@lancaster.ac.uk
Tue, 17 Dec 2002 17:26:00 +0000


> The current event services are not aware of traversal, relying instead 
> on indirect subscribers for traversal and weak referencing.  Therefore, 
> if the design doesn't change, that isn't an issue.  Do you want the 
> design to change?

ObjectEvents need to be able to have a lazy location. So, they need to 
be aware of traversal.

The service itself doesn't need to be aware of this. There should be 
ObjectEvent implementations in Zope.App.Event.

Independently of this, I suggest that subscribing by location should be 
the most common form of subscription in Zope 3. This is important to 
preserve the containment context of objects when they are notified of 
events, so that they will have the correct security context.

As this is very common, and important for security, it should be easy to 
subscribe in this way. So, either the 'subscribe' method of Subscribable 
should support subscription by location, or there should be a 
LocationSubscribable interface to describe this, and EventChannels and 
the local EventService should support this.


--
Steve Alexander