# HG changeset patch # User Sylvain Thénault # Date 1255598423 -7200 # Node ID acdba524bb8fac0cdbe0f35922d1caf20ff6e237 # Parent fa170564e1a0fd4d981c594230fc7756af13cf06 fix i18ncube diff -r fa170564e1a0 -r acdba524bb8f devtools/devctl.py --- a/devtools/devctl.py Thu Oct 15 10:56:46 2009 +0200 +++ b/devtools/devctl.py Thu Oct 15 11:20:23 2009 +0200 @@ -219,10 +219,14 @@ for reg, objdict in vreg.items(): for objects in objdict.values(): for obj in objects: - objid = '%s_%s' % (reg, obj.id) + objid = '%s_%s' % (reg, obj.__regid__) if objid in done: break - if obj.cw_property_defs: + try: # XXX < 3.6 bw compat + pdefs = obj.property_defs + except AttributeError: + pdefs = getattr(obj, 'cw_property_defs', {}) + if pdefs: yield objid done.add(objid) break