Event Handler

Andreas Jung lists at zopyx.com
Sat May 26 18:36:09 UTC 2007



--On 26. Mai 2007 19:02:18 +0200 Godefroid Chapelle <gotcha at bubblenet.be> 
wrote:

> Alain Hernandez Lopez wrote:
>> Hello
>> Often I've used events like at_post_create_script() , I need to use an
>> event that activates when an object is deleted, and another that
>> activates when Zope restart, please if anyone know some event that make
>> what I want and cant provide me, or if know some book or tutorial in
>> which explain how works events handler.
>> Excuse my English
>
> As far as I know, there are no Zope restart events but you can use the
> Python import mechanism to find out that your product is loaded which
> happens at start time.
>
> For delete, you can use manage_afterDelete which should be used the same
> way than at_post_create.
>
> However both manage_afterDelete and at_post_create are getting deprecated.

*before*Delete()...after deletion an object no longer exists and can no 
longer perform any action :-)


-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20070526/174b15f2/attachment.asc>


More information about the Product-Developers mailing list