Re: can't register adapters for classes with metaclasses
Chris Withers <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
Zope-Dev maillist - [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )