[Zope-dev] the ZCA API decision

Christian Theune ct at gocept.com
Fri Dec 4 10:43:33 EST 2009


Hi,

On 12/03/2009 06:41 PM, Martijn Faassen wrote:
> Hi there,
>
> I think we've had enough discussion to make a decision. Hopefully
> everybody is at least reasonably happy with this:
>
> An "adapt()" method will be added to Interface. It takes the objects to
> adapt as *args, and optional but explicit 'default' and 'name' aguments.
>
> A "utility()" method will be added to Interface. It takes optional but
> explicit 'default' and 'name' arguments.
>
> On the adapter hook (__call__) we will deprecate the implicit second
> argument for defaults, with a deprecation warning. Instead, we will
> require people to write out 'default=' explicitly. Otherwise its
> behavior remains unchanged. I think we can motivate this change purely
> because IFoo(bar, baz) really is quite surprising compared to IFoo(bar,
> default=baz).
>
> [steering group members, if you are really unhappy with this, please
> speak up now. Silence is assent. :)]

I'm assenting loudly as I'm happy to see progress on this issue.

Christian

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development



More information about the Zope-Dev mailing list