[Zope-dev] Delete or move - who can tell?

Florent Guillaume fg@nuxeo.com
26 Dec 2001 19:34:38 GMT


To prevent copying from above, maybe you could have a manage_afterClone
method that raises an exception.

Florent


Tom Bech <tomb@ii.uib.no> wrote:
> Hi!
> 
> Is there really no way for an object to know wether a call to
> manage_beforeDelete is the result of a delete or a move
> operation?
> 
> I've tried to override _notifyOfCopyTo and setting
> an internal variable based on the op parameter,
> but alas it's not called when moving the parent...
> 
> I have another class of objects which must not be cloned
> (sitewide unique) and I have overridden _CanCopy to avoid this,
> but again it's simply ignored when the parent is cloned...
> 
> Any suggestions?
> 
> Tom
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com