6 Aug
2003
6 Aug
'03
6:59 p.m.
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