[Zope3-dev] Question on new feature
Garrett Smith
garrett at mojave-corp.com
Sat Feb 5 08:55:32 EST 2005
Gintautas Miliauskas wrote:
> Hello,
>
>> - Added an API for declaring interfaces adapted by classes
>>
>> What is this?
>
> I think it is about the adapts() function. Basically, just as you can
> specify which interfaces a class implements by using implements(), you
> can specify what interfaces the class can adapt by using adapts().
> Then you don't need to supply the adapted & provided interfaces when
> you register the adapter. See src/zope/component/README.txt for some
> examples.
What's the status of __used_for__? Is adapts the preferred semantic, or
is it different from __used_for__?
-- Garrett
More information about the Zope3-dev
mailing list