435 """XXX for < 3.6 bw compat""" |
435 """XXX for < 3.6 bw compat""" |
436 def tag_relation(self, key, tag): |
436 def tag_relation(self, key, tag): |
437 warn('autoform_is_inlined rtag is deprecated, use autoform_section ' |
437 warn('autoform_is_inlined rtag is deprecated, use autoform_section ' |
438 'with inlined formtype and "attributes" or "hidden" section', |
438 'with inlined formtype and "attributes" or "hidden" section', |
439 DeprecationWarning, stacklevel=2) |
439 DeprecationWarning, stacklevel=2) |
440 section = tag and 'attributes' or 'hidden' |
440 section = tag and 'inlined' or 'hidden' |
441 autoform_section.tag_relation(key, 'inlined', section) |
441 autoform_section.tag_relation(key, 'main', section) |
442 |
442 |
443 # inlined view flag for non final relations: when True for an entry, the |
443 # inlined view flag for non final relations: when True for an entry, the |
444 # entity(ies) at the other end of the relation will be editable from the |
444 # entity(ies) at the other end of the relation will be editable from the |
445 # form of the edited entity |
445 # form of the edited entity |
446 autoform_is_inlined = AutoformIsInlined('autoform_is_inlined') |
446 autoform_is_inlined = AutoformIsInlined('autoform_is_inlined') |