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

Tom Bech tomb@ii.uib.no
Tue, 25 Dec 2001 17:07:52 +0100


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