On Wednesday 31 August 2005 05:41, Martijn Faassen wrote:
> Okay, this is clear. It's not that clear to me how to efficiently make a
> subscriber only handle one object type (I've been using the "is this a
> IFoo? If not, return" pattern at the start of subscribers), but that's
> another discussion.

The better pattern is:

Have a subscriber to your event E that sends out another event notification 
for (E, E.obj). Then you have many subscribers to the latter pair. Note that 
we are already doing this for object events.

Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to