[Zope3-dev] RE: Event service should adapt to ISubscriber
Gary Poster
gary.poster@zope.com
Thu, 23 Jan 2003 14:56:00 -0500
Well, in for a penny, in for a pound, I suppose. This will slow the
event service down, but yes, it sounds like the right thing to do.
+1
Gary
> -----Original Message-----
> From: Steve Alexander [mailto:steve@cat-box.net]
...
> What I'd rather do is implement a specific method, like
> _notifyFooChanged() in my pythonic implementation class, and make an
> ISubscriber adapter for my class that will get notified of an
IFooEvent,
> and call _notifyFooChanged() on its context.
>
> def notify(self, event):
> 'See ISubscriber'
> if IFooEvent.isImplementBy(event):
> self.context._notifyFooChanged(event.fooDetails)
>
>
> I'd also like to make ISubscribingAware something that can be adapted
> to, rather than the current situation where it has to be implemented
by
> the object being subscribed to an event service.
>
>
> Any objections to this?
>
> --
> Steve Alexander