[Grok-dev] Is there a reason for not supporting IMyAdapter(context, 'name')?

Jan-Wijbrand Kolman janwijbrand at gmail.com
Wed Feb 23 06:33:12 EST 2011

On 2/23/11 10:10 AM, Sebastian Ware wrote:
> Using getAdapter hides the autocompletion when using for example
> Komodo IDE. If one could use the shorthand notation
> IMyAdapter(context, 'name')
> to look up a named adapter it would work out-of-the-box. It would be
> a nice feature. Obviously the same would be great for GlobalUtility
> lookups and MultiAdapters, but I am guessing that is a bigger issue.

This would be a big change in the zope.interface API and implementation. 
Similar plans have been discussed on zope-dev quite a while ago [1]. Not 
sure of the outcome...

regards, jw

[1] http://permalink.gmane.org/gmane.comp.web.zope.devel/22256

More information about the Grok-dev mailing list