[Zope3-dev] ObjectHub Event names proposal

Steve Alexander steve@cat-box.net
Tue, 06 Aug 2002 12:03:11 +0100


Florent Guillaume wrote:
> Godefroid Chapelle  <gotcha@swing.be> wrote:
> 
>>IHubEvent
>>|
>>+--IRegistrationHubEvent
>>|   |
>>|   +--IObjectRegisteredHubEvent
>>|   |
>>|   +--IObjectUnregisteredHubEvent
>>|
>>+--INotificationHubEvent
>>     |
>>     +--IObjectAddedHubEvent
>>     |
>>     +--IObjectRemovedHubEvent
>>     |
>>     +--IObjectMovedHubEvent
>>     |
>>     +--IObjectChangedHubEvent
> 
> 
> Could someone describe the events generated when
> - an object is newly created in a folder

IObjectAddedEvent

> - an object is moved

IObjectMovedEvent, if it is renamed within the same folder.
An IObjectMoved event should probably extend both IObjectAddedEvent and 
IObjectRemovedEvent.

> - an object is copied

IObjectAddedEvent

> - an object is removed from a folder

IObjectRemovedEvent

> My question really is about movement: will that generate an
> Removed+Added event, or a Moved event, or both?

A moved event, which is both.


Note that these are different than the HubEvents listed in the ascii art 
above.

--
Steve Alexander