[Zope3-dev] wildcard adapter

Chris Withers chris at simplistix.co.uk
Thu Jan 18 03:55:17 EST 2007


Marius Gedminas wrote:
> BTW passing interfaces to provideAdapter/<adapts> is out of fashion. 

This stuff is getting almost perl-ish in it's "there's many ways to do 
it, pick the style you like" nature..

> I
> prefer using zope.component.adapts and zope.interface.implements (or
> zope.component.adapter and zope.interface.implementer, when my adapter
> is a function rather than a class).

I often register the same adapter factory for several different types or 
objects / interfaces. How would I do that with your favoured spelling?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope3-dev mailing list