fix i18ncube for pegase where we do strange things by redefining relations oldstable
authorStephanie Marcu <stephanie.marcu@logilab.fr>
Wed, 28 Apr 2010 16:55:39 +0200
brancholdstable
changeset 5431 84d8b4357528
parent 5428 98e0b7421e51
child 5439 c476d106705e
fix i18ncube for pegase where we do strange things by redefining relations
devtools/devctl.py
--- a/devtools/devctl.py	Wed Apr 28 14:05:50 2010 +0200
+++ b/devtools/devctl.py	Wed Apr 28 16:55:39 2010 +0200
@@ -174,9 +174,10 @@
                             'inlined:%s.%s.%s' % (etype, rschema, role))
                     add_msg(w, str(tschema),
                             'inlined:%s.%s.%s' % (etype, rschema, role))
-                if appearsin_addmenu.etype_get(eschema, rschema, role, tschema) and \
-                       (libconfig is None or not
-                        libappearsin_addmenu.etype_get(eschema, rschema, role, tschema)):
+                if appearsin_addmenu.etype_get(eschema, rschema, role, tschema):
+                    if libconfig is not None and libappearsin_addmenu.etype_get(eschema, rschema, role, tschema):
+                        if eschema in libschema and tschema in libschema:
+                            continue
                     if role == 'subject':
                         label = 'add %s %s %s %s' % (eschema, rschema,
                                                      tschema, role)