[Zope3-Users] component.adapts or __used_for__
sakesun at boonthavorn.com
Mon May 30 02:40:30 EDT 2005
Both of them do the same thing ? Which one will be deprecated ?
Dominik Huber wrote:
> Sakesun Roykiattisak wrote:
>> component.adapts or __used_for__
>> Which one is the current preferred method to declare adapter context
>> interface ?
> component.adapts, __used_for__ was just a 'makeshift' convention.
> If you use component.adapts and the internface.implements methods
> serveral direvtives detect their for- and provides-attributes
> for example:
> <adapter factory="bar.FooForBar" />
> instead of
> <adapter factory="bar.FooForBar" provides=".IFoo" for=".IBar" />
More information about the Zope3-users