[Zope3-dev] ObjectHub Event names proposal

Max M maxm@mxm.dk
Tue, 06 Aug 2002 14:06:00 +0200


Florent Guillaume wrote:

>Godefroid Chapelle  <gotcha@swing.be> wrote:
>  
>
>>IHubEvent
>>|
>>+--IRegistrationHubEvent
>>|   |
>>|   +--IObjectRegisteredHubEvent
>>|   |
>>|   +--IObjectUnregisteredHubEvent
>>|
>>+--INotificationHubEvent
>>     |
>>     +--IObjectAddedHubEvent
>>     |
>>     +--IObjectRemovedHubEvent
>>     |
>>     +--IObjectMovedHubEvent
>>     |
>>     +--IObjectChangedHubEvent
>>

Sorry for jumping into the discussion with no reasonable background 
knowledge. But will these events have those names? And is it something 
that needs to be written in code?

If so they contain way to much information about types.

What I am afraid of that it will have the effect of::

   event = SomeEventGenerator()
   if event.IObjectRegisteredHubEvent:
      doStuff()

Instead of ::

   event = SomeEventGenerator()
   if event.registered:
      doStuff()

I am probably way of here, but I have seen stuff like that to many times 
so just wanted to put a cautious finger in the air.

regards Max M

-- 

"Sorry I would Really Like To Help More On This Project,
But Am To Busy Doing Paid Work On A Tight Deadline"
    Max M