Hi, zope.annotation.factory is a very handy tool. I wonder if it should not send an ObjectAddedEvent when the annotation object is created. After all an object is added. But there is no (easy) way catalog those objects or do anything. If there are no objections I'll add this. Regards, -- Christian Zagrodnick gocept gmbh & co. kg · forsterstrasse 29 · 06112 halle/saale www.gocept.com · fon. +49 345 12298894 · fax. +49 345 12298891
On 2007-12-21 09:52:34 +0100, Christian Zagrodnick <cz@gocept.com> said:
Hi,
zope.annotation.factory is a very handy tool.
I wonder if it should not send an ObjectAddedEvent when the annotation object is created. After all an object is added. But there is no (easy) way catalog those objects or do anything.
I have to correcty myself: ObjectAddedEvent is the wrong event I suppose since it is from zope.app.container and the annotation factory doesn't add it into a container. zope.lifecycleevent.ObjectCreatedEvent might be okay though. There should be at least "some" event when this object was created, shouldn't there? -- Christian Zagrodnick gocept gmbh & co. kg · forsterstrasse 29 · 06112 halle/saale www.gocept.com · fon. +49 345 12298894 · fax. +49 345 12298891
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christian Zagrodnick wrote:
Hi,
zope.annotation.factory is a very handy tool.
I wonder if it should not send an ObjectAddedEvent when the annotation object is created. After all an object is added. But there is no (easy) way catalog those objects or do anything.
If there are no objections I'll add this.
- -1. Annotations aren't going to be interesting to most code which is registered for such events. If necessary, emit an 'IAnnoationAdded' event, or something, but *don't* derive from the existing interfaces. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@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 iD8DBQFHa/BM+gerLs4ltQ4RAgTkAJ41cFpjDyRLphRLjEL3sCADr24TBwCeM9J8 V95i6AkGado70YwSedxOiaI= =NyRc -----END PGP SIGNATURE-----
participants (2)
-
Christian Zagrodnick -
Tres Seaver