[uicfg] automatically set generated for the opposite of inlined relation as well stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 21 Sep 2009 18:49:38 +0200
branchstable
changeset 3351 2ea19d969a2d
parent 3350 fa77640a9155
child 3352 83aabc5e3de3
child 3353 1003a6f3d298
[uicfg] automatically set generated for the opposite of inlined relation as well
web/uicfg.py
--- a/web/uicfg.py	Mon Sep 21 18:09:38 2009 +0200
+++ b/web/uicfg.py	Mon Sep 21 18:49:38 2009 +0200
@@ -167,7 +167,8 @@
 
 def init_autoform_section(rtag, sschema, rschema, oschema, role):
     if rtag.get(sschema, rschema, oschema, role) is None:
-        if autoform_is_inlined.get(sschema, rschema, oschema, role):
+        if autoform_is_inlined.get(sschema, rschema, oschema, role) or \
+               autoform_is_inlined.get(sschema, rschema, oschema, neg_role(role)):
             section = 'generated'
         elif sschema.is_metadata(rschema):
             section = 'metadata'