Re: [Zope3-Users] component.adapts or __used_for__

2005-05-30 Thread Dominik Huber

Sakesun Roykiattisak wrote:


Both of them do the same thing ?  Which one will be deprecated ?


__used_for__ documentation convention should be replaced by the 
component.adapts. At the moment both declaration exists within the code.


On a documentation respect both of them do the same, but only the 
component.adapts has influence on the zcml configuration.


Regards,
Dominik



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 
implicitely.

for example:

instead of





___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users





___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] component.adapts or __used_for__

2005-05-30 Thread Sakesun Roykiattisak

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 
implicitely.

for example:

instead of




___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] component.adapts or __used_for__

2005-05-29 Thread Dominik Huber

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 implicitely.


for example:

instead of


Regards,
Dominik Huber

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] component.adapts or __used_for__

2005-05-29 Thread Sakesun Roykiattisak

component.adapts or __used_for__

Which one is the current preferred method to declare adapter context 
interface ?

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users