--On 26. Mai 2007 19:02:18 +0200 Godefroid Chapelle <[EMAIL PROTECTED]> 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 EnglishAs 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
pgpF3hYX1mUcP.pgp
Description: PGP signature
_______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
