Marius Gedminas wrote:
> I'd prefer
> 
>     from zope.annotation.adapter import AnnotationAdapter
> 
>     getFoo = AnnotationAdapter(for_=IBar,
>                                interface=IFoo,
>                                factory=Foo,
>                                key=FOO_KEY)
>     # I suppose the key could be optional; you could use a dotted
>     # interface name by default
> 
> and then the ordinary
> 
>     <zope:adapter factory=".foo.getFoo" />

+10

Philipp
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to