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


Tom Bech <[EMAIL PROTECTED]> 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  mailto:[EMAIL PROTECTED]

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to