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

Sebastian Ware sebastian at urbantalk.se
Wed Feb 23 04:10:30 EST 2011


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.

Anyway, it would be a really nice way to expose the application API and eggs to new developers on a project.

Mvh Sebastian


More information about the Grok-dev mailing list