[Zope] callback function when object is deleted

Max M maxm@mxm.dk
Wed Aug 6 19:59:25 EDT 2003


Carsten Gehling wrote:

> If the user deletes an equipment object through the ZMI, I'd like the object
> to set a "deleted" flag on each log entry beforehand. Similar, if the
> deletion is undone, the object should remove the "deleted" flag.


The manage_beforeDelete() and manage_afterAdd() hooks migh be what you need.

They are called by zope on any object being added or deleted 
respectively. Don't know what they do in regard to undo though!

Beware that they are also called copy/paste operations.


regards Max M





More information about the Zope mailing list