[Zope3-dev] Question on new feature

Gintautas Miliauskas gintas at pov.lt
Sat Feb 5 09:56:11 EST 2005


Hello,

> What's the status of __used_for__? Is adapts the preferred semantic, or
> is it different from __used_for__?

I might be wrong, but I think that __used_for__ is not validated or
taken into account anywhere into the code, it's just a comment.
adapts(), on the other hand, is an explicit statement and allows you to
write cool and concise things like "provideAdapter(MyAdapter)" (I'm not
sure if such adapters can be registered in ZCML without interface
declarations, but that is probable).

-- 
Gintautas Miliauskas <gintas at pov.lt>
Programmers of Vilnius


More information about the Zope3-dev mailing list