[Zope3-dev] Re: IMPORTANT: How to look up adapters
Jim Fulton
jim at zope.com
Fri Jul 2 14:16:01 EDT 2004
Tres Seaver wrote:
> Jim Fulton wrote:
>
...
>> There is one case where calling an interface isn't equivalent to
>> get/queryAdapter. If you want to supply a context argument to specify
>> a different place to look up adapters, you can't pass it to the
>> interface. This is an extreme edge case. I know of no place in the
>> Zope 3 tree where this is needed, but it is something we want to
>> allow. I propose to provide new functions: getSpecialAdapter and
>> querySpecialAdapter. These functions will require a context to be
>> specified and will return the object if it provides the requested
>> interface and will use __conform__ if it conforms to the interface.
>
>
> How about 'getAdapterInContext' and 'queryAdapterInContext', instead?
OK. That's better,
Thanks.
The change is checked in BTW.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-dev
mailing list