web/uicfg.py
changeset 7990 a673d1d9a738
parent 7897 defac26f4151
child 8238 087bb529035c
--- a/web/uicfg.py	Fri Oct 21 14:32:18 2011 +0200
+++ b/web/uicfg.py	Fri Oct 21 14:32:37 2011 +0200
@@ -243,19 +243,11 @@
         for formtype, section in sectdict.iteritems():
             formsections.add('%s_%s' % (formtype, section))
 
-    def tag_relation(self, key, formtype, section=None):
+    def tag_relation(self, key, formtype, section):
         if isinstance(formtype, tuple):
             for ftype in formtype:
                 self.tag_relation(key, ftype, section)
             return
-        if section is None:
-            tag = formtype
-            for formtype, section in self.bw_tag_map[tag].iteritems():
-                warn('[3.6] add tag to autoform section by specifying form '
-                     'type and tag. Replace %s by formtype="%s", section="%s"'
-                     % (tag, formtype, section), DeprecationWarning,
-                     stacklevel=3)
-                self.tag_relation(key, formtype, section)
         assert formtype in self._allowed_form_types, \
                'formtype should be in (%s), not %s' % (
             ','.join(self._allowed_form_types), formtype)
@@ -450,20 +442,3 @@
 
 actionbox_appearsin_addmenu = RelationTagsBool('actionbox_appearsin_addmenu',
                                                init_actionbox_appearsin_addmenu)
-
-
-# deprecated ###################################################################
-
-class AutoformIsInlined(RelationTags):
-    """XXX for < 3.6 bw compat"""
-    def tag_relation(self, key, tag):
-        warn('autoform_is_inlined is deprecated, use autoform_section '
-             'with formtype="main", section="inlined"',
-             DeprecationWarning, stacklevel=3)
-        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
-# form of the edited entity
-autoform_is_inlined = AutoformIsInlined('autoform_is_inlined')