[Zope-PTK] portal_events & DOM Level 2

Chris Withers chrisw@nipltd.com
Tue, 05 Sep 2000 18:03:37 +0100


Paul Everitt wrote:
> > portal_events, as proposed, would let you subscribe to
> > *all* portal events.  Maybe instead of that approach
> > we need to add event subscription capability to
> > specific tools, such as:
> >
> >   portal_workflow.addStatusChangeListener()
> >
> > and:
> >
> >   portal_workflow.removeStatusChangeListener()
> 
> This would also match the XML DOM Level 2 model:
> 
> """
> The _EventListener_ interface is the primary method for handling events.
> Users implement the EventListener interface and register their listener
> on an _EventTarget_ using the _AddEventListener_ method.
> """

Hmm, how does Tres' stuff (which I didn't fully understand but which
sounded a little mroe easy to use in he long run) compare with this?

cheers,

Chris