[Zope3-dev] catalog 'all documents' abstraction
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Aug 31 06:15:35 EDT 2005
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.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-dev
mailing list