[Zope-dev] Re: No events in zope.annotation

Tres Seaver tseaver at palladion.com
Tue Jul 15 13:33:40 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stephan Richter wrote:
> Hi everyone,
> 
> I just tried to create a catalog for an annotation and noticed that it does 
> not get filled. Digging around in the zope.annotation package, I noticed that 
> the zope.annotation package does not send out any object events. This 
> sucks. ;-)
> 
> Thus I propose:
> 
> - Add ObjectCreatedEvent event notification to zope.annotation factory call.
> 
> - Add ObjectAddedEvent to attribute annotations __setitem__.
> 
> - Add ObjectRemovedEvent to attribute annotations __delitem__.
> 
> This would mimic the behavior of the other containers. the downside is that we 
> have 2 new dependencies, zope.event and zope.lifecycleevent, both of which 
> are acceptable in my opinion.
> 
> Comments? Silence is consent as always.

I must be missing something:  why would you catalog annoations as though
they were separate content objects?  The entire point of annotations was
to be "meta" about some other content object.

- -1 to any change which encourages abusing them to look like "items" in
the target object as a container.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIfN90+gerLs4ltQ4RAiusAJ0dSzChnQme4ncb79I52wyVY7nkDQCgizOK
rmzBPUOJtZgQiTmpswogzDc=
=Acg2
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list