444 # deprecated ################################################################### |
444 # deprecated ################################################################### |
445 |
445 |
446 class AutoformIsInlined(RelationTags): |
446 class AutoformIsInlined(RelationTags): |
447 """XXX for < 3.6 bw compat""" |
447 """XXX for < 3.6 bw compat""" |
448 def tag_relation(self, key, tag): |
448 def tag_relation(self, key, tag): |
449 warn('autoform_is_inlined rtag is deprecated, use autoform_section ' |
449 warn('autoform_is_inlined is deprecated, use autoform_section ' |
450 'with inlined formtype and "attributes" or "hidden" section', |
450 'with formtype="inlined", section="attributes" or section="hidden"', |
451 DeprecationWarning, stacklevel=3) |
451 DeprecationWarning, stacklevel=3) |
452 section = tag and 'inlined' or 'hidden' |
452 section = tag and 'inlined' or 'hidden' |
453 autoform_section.tag_relation(key, 'main', section) |
453 autoform_section.tag_relation(key, 'main', section) |
454 |
454 |
455 # inlined view flag for non final relations: when True for an entry, the |
455 # inlined view flag for non final relations: when True for an entry, the |