ensure bw compat for relation traduction, add context to _object msg id 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 17 Sep 2009 11:31:38 +0200
branch3.5
changeset 3280 c1f5625f2fea
parent 3279 6a2cde3f886e
child 3281 bea1bde00fbc
ensure bw compat for relation traduction, add context to _object msg id
devtools/devctl.py
--- a/devtools/devctl.py	Thu Sep 17 11:08:09 2009 +0200
+++ b/devtools/devctl.py	Thu Sep 17 11:31:38 2009 +0200
@@ -152,8 +152,13 @@
         rtype = rschema.type
         for subjschema in rschema.subjects():
             add_msg(w, rtype, subjschema.type)
+            # bw compat, necessary until all translation of relation are done properly...
+        add_msg(w, rtype)
         done.add(rtype)
         if not (schema.rschema(rtype).is_final() or rschema.symetric):
+            for objschema in rschema.objects():
+                add_msg(w, '%s_object' % rtype, objschema.type)
+            # bw compat, necessary until all translation of relation are done properly...
             add_msg(w, '%s_object' % rtype)
         if rschema.description and rschema.description not in done:
             done.add(rschema.description)