[Zope3-dev] Re: calling interface returns object,
calling queryAdapter returns None?
Chris Withers
chris at simplistix.co.uk
Wed Jan 24 17:54:16 EST 2007
Fred Drake wrote:
> 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:
Ah, now that's what I was looking for, thanks :-)
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope3-dev
mailing list