fix i18ncube
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 15 Oct 2009 11:20:23 +0200
changeset 3677 acdba524bb8f
parent 3676 fa170564e1a0
child 3678 29f74716fd70
fix i18ncube
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