[Zope-dev] Re: Should zope.annotation.factory send ObjectAddedEvent?

2007-12-21 Thread Tres Seaver
-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  [EMAIL PROTECTED]
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-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Should zope.annotation.factory send ObjectAddedEvent?

2007-12-21 Thread Christian Zagrodnick

On 2007-12-21 09:52:34 +0100, Christian Zagrodnick <[EMAIL PROTECTED]> 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



___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )