More generally, there's a difference in philosophy between Zope 2 and
Zope 3 here:

- Zope 2 calls manage_beforeDelete *before* the removal,
- Zope 3 sends IObjectRemovedEvent *after* the removal.

This will make some porting / compatibility more difficult. I may add an
IObjectWillBeRemovedEvent in Five for that, but maybe it makes sense to
have it in pure Zope 3 ?


Florent Guillaume  <[EMAIL PROTECTED]> wrote:
> Zope 2, when it copies/moves an object, calls ob._notifyOfCopyTo to  
> allow it to veto the copy *before* it is done if it doesn't like the  
> destination container.
> In Zope 3, is it worthwhile to have a kind of ObjectWillBeCopied/ 
> Added event for that, or do you guys feel that this kind of vetoing  
> should be done by simply subscribing to ObjectAddedEvent or one of  
> its friends?
> I'm asking because I'm in the middle of converting Zope 2's OFS  
> spaghettis to cleaner event-based code (and deprecating things like  
> _notifyOfCopyTo and _postCopy).

Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   [EMAIL PROTECTED]
Zope3-dev mailing list

Reply via email to