[Zope3-Users] Re: Checking if an interface is provided by an object or could be adapted to

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Apr 30 19:55:46 EDT 2006


On Sunday 30 April 2006 19:34, Bernd Dorn wrote:
> component.queryMultiAdapter((bar,baz), IFoo) is not None or False

Why not just:

component.queryMultiAdapter((bar,baz), IFoo, default=False) 

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-users mailing list