[Zope-dev] can't register adapters for classes with metaclasses

Chris Withers chris at simplistix.co.uk
Sun Feb 27 16:23:04 EST 2011


On 27/02/2011 17:22, Tres Seaver wrote:
>> TypeError: 'DeclarativeMeta' object is not iterable
>>
>> Why is that and how should I register an adapter against such a class?
>
> UTSL:  the 'required' argument passed to 'registerAdapter' is supposed
> to be a sequence of interfaces or classes, not a single interface or
> class.  If a class, then it must be something which can be passed to
> 'implementedBy'.

Thanks. I blame mcdonc, got used to having actual docs for everything ;-)

Chris

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


More information about the Zope-Dev mailing list