Previously Stephan Richter wrote:
On Wednesday 16 July 2008, Fred Drake wrote:
On Wed, Jul 16, 2008 at 10:26 AM, Stephan Richter
<srichter@cosmos.phy.tufts.edu> wrote:
I agree. I realized only later that those events are defined in the zope.app.container package. In this case I would just create new annotation-specific events based on ObjectEvent, which is defined in zope.component, and zope.component is already a dependency.
Hmm. Would these be fired by the IAnnotations adapter or by the factory? There might be some interesting tradeoffs there. Many annotations are just simple data types (strings, tuples, dictionaries); those can be used with object events, but it seems a little non-intuitive.
I do not think that I have a single annotation that is a simple type. I cannot even think of a quick example where any of the Zope 3 core packages have/use simple type annotations.
FWIW none of my code uses anything other than simple types for annotations. Wichert. -- Wichert Akkerman <wichert@wiggy.net> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple.