[Zope-dev] ZCA proposal

Martin Aspeli optilude+lists at gmail.com
Wed Dec 2 23:09:50 EST 2009


Gary Poster wrote:
> I think I could get fully behind the following proposal that others
> have made (Shane I think was one of several?).
> 
> IFoo.adapt(...)
> 
> IFoo.utility(...)

I could get behind this too.

We'd need the current IFoo(context, default) for single adaptation to 
continue to work, and I *wouldn't* deprecate it with a warning, since 
it'd just lead to a lot of warnings. We'd obviously also want the 
existing get*() methods to continue to work.

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book



More information about the Zope-Dev mailing list