# HG changeset patch # User Sylvain Thénault # Date 1250151891 -7200 # Node ID 2251b4aee54ab1989682a441a09626fa2f0b9959 # Parent 7ef4c1c9266b49c48b4edc4b926c78a8fa022d20 should still call .items diff -r 7ef4c1c9266b -r 2251b4aee54a 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'))