should still call .items
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 13 Aug 2009 10:24:51 +0200
changeset 2802 2251b4aee54a
parent 2801 7ef4c1c9266b
child 2803 870fa705dfde
should still call .items
appobject.py
--- a/appobject.py	Thu Aug 13 10:24:31 2009 +0200
+++ b/appobject.py	Thu Aug 13 10:24:51 2009 +0200
@@ -278,7 +278,7 @@
         cls.build___select__()
         cls.vreg = registry.vreg
         pdefs = getattr(cls, 'cw_property_defs', {})
-        for propid, pdef in pdefs:
+        for propid, pdef in pdefs.items():
             pdef = pdef.copy() # may be shared
             pdef['default'] = getattr(cls, propid, pdef['default'])
             pdef['sitewide'] = getattr(cls, 'site_wide', pdef.get('sitewide'))