fix autoform_is_inlined bw compat
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 19 Jan 2010 12:17:22 +0100
changeset 4261 b45a3563c6bb
parent 4259 83b0bf9b0a51
child 4262 83d245d33436
fix autoform_is_inlined bw compat
web/uicfg.py
--- a/web/uicfg.py	Tue Jan 19 10:43:48 2010 +0100
+++ b/web/uicfg.py	Tue Jan 19 12:17:22 2010 +0100
@@ -437,8 +437,8 @@
         warn('autoform_is_inlined rtag is deprecated, use autoform_section '
              'with inlined formtype and "attributes" or "hidden" section',
              DeprecationWarning, stacklevel=2)
-        section = tag and 'attributes' or 'hidden'
-        autoform_section.tag_relation(key, 'inlined', section)
+        section = tag and 'inlined' or 'hidden'
+        autoform_section.tag_relation(key, 'main', section)
 
 # inlined view flag for non final relations: when True for an entry, the
 # entity(ies) at the other end of the relation will be editable from the