[ZCM] [ZC] 2348/ 2 Comment "zope.interface attribute error"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Tue, 21 Aug 2007 11:39:16 -0400
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #2348 Update (Comment) "zope.interface attribute error" Status Pending, Zope/bug medium To followup, visit: http://www.zope.org/Collectors/Zope/2348 ============================================================== = Comment - Entry #2 by philikon on Aug 21, 2007 11:39 am Judging from the error message, you have not defined an interface but a class (*type* object ... has no attribute '__iro__'). Compare this with: >>> class ICurrencyManager(object): ... pass ... >>> ICurrencyManager.__iro__ Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: type object 'ICurrencyManager' has no attribute '__iro__' So, it seems you inherited from 'object' instead of 'zope.interface.Interface' by mistake. ________________________________________ = Request - Entry #1 by wichert on Aug 21, 2007 5:30 pm During development on persistent utilities I occasionally run into this error: Module Products.CMFCore.PortalObject, line 72, in getSiteManager Module ZODB.Connection, line 761, in setstate Module ZODB.Connection, line 819, in _setstate Module ZODB.serialize, line 605, in setGhostState Module zope.component.persistentregistry, line 42, in __setstate__ Module zope.interface.adapter, line 80, in _createLookup Module zope.interface.adapter, line 389, in __init__ Module zope.interface.adapter, line 426, in init_extendors Module zope.interface.adapter, line 430, in add_extendor AttributeError: type object 'ICurrencyManager' has no attribute '__iro__' ==============================================================