[Zope3-dev] Re: calling interface returns object,
calling queryAdapter returns None?
Fred Drake
fdrake at gmail.com
Wed Jan 24 17:48:02 EST 2007
On 1/24/07, Chris Withers <chris at simplistix.co.uk> wrote:
> queryAdapter, for me, is "starting with the supplied object, get me
> something that implements the supplied interface and return None if no
> such object can be obtained".
o = IFoo(ob, None)
if os is not None:
...
> If there's another function which does this, fine, if not, then I
> maintain the current behaviour is not correct...
Er, wrong. Like Jim said, if it's documented...
-Fred
--
Fred L. Drake, Jr. <fdrake at gmail.com>
"Every sin is the result of a collaboration." --Lucius Annaeus Seneca
More information about the Zope3-dev
mailing list