--- 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