[Zope-dev] improving the utility and adapter lookup APIs

Martijn Faassen faassen at startifact.com
Wed Nov 25 16:21:47 EST 2009


Thomas Lotze wrote:
[snip]
> What about a simple and consistent API for all components including
> utilities, adapters and multiadapters:
> 
> IFoo()
> IFoo(x)
> IFoo(x, y)

The last one won't work if we want to maintain backwards compatibility. 
The second argument is the default.

Regards,

Martijn




More information about the Zope-Dev mailing list