[Twisted-Python] adapt from more than one interface

Jonathan Lange jml at mumak.net
Sun Apr 12 21:27:11 EDT 2009

On Sun, Apr 12, 2009 at 7:08 PM, Esteve Fernandez <esteve at sindominio.net> wrote:
> I still think it does, but nobody wants to make the ticket count grow
> higher :-) Anyway, Zope already has this nifty thing called multi-adapters,
> which implement exactly what I described:
> http://www.muthukadan.net/docs/zca.html#multi-adapter
> but I always liked Twisted's adapter registry better and our application
> already uses it in quite a few places. I like being able to call IFoo(bar)
> and let the registry lookup an adapter automatically, instead of having to
> call getAdapter()/queryAdapter()

IFoo(bar) works just fine with the Zope adapter registry.


More information about the Twisted-Python mailing list