[Zope3-dev] manage_beforeDelete

Florent Guillaume fg@nuxeo.com
Fri, 31 Jan 2003 12:21:07 +0100


Steve wrote:
> > * I noticed 'manage_beforeDelete still exists in Zope 3 code.  Why does 
> > the 'manage_' concept still exist?
> 
> The name is there, but there is nothing magical about the 'manage_' 
> prefix. It could equally well be called "beforeDeleteHook".

I'd really like to change that name, it brings back bad memories and is
not clear.

I propose one of:
  - notify_beforeDelete (which I prefer)
  - hook_beforeDelete

(same thing for _afterAdd)

Any opinions?

Florent


> The before-deletion hook is called before an object is deleted from a 
> container, if the object implements IDeleteNotifiable.
> If the object is not IDeleteNotifiable, but it has an IDeleteNotifiable 
> adapter, that adapter's manage_beforeDelete method is called.

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com