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.
The right way to do it today is to subscribe handlers for Zope 3 events.
I highly advise you to buy Philipp von Weitershausen book about Zope 3
as more and more stuff from Zope 3 is used in Plone.
Web Component Development with Zope 3
Second Edition !
Springer
--
Godefroid Chapelle (aka __gotcha)- BubbleNet http://bubblenet.be
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers