Philipp von Weitershausen wrote:
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

Likewise.

Jim

--
Jim Fulton           mailto:[EMAIL PROTECTED]       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org
_______________________________________________
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