missing authorized value
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 13 Oct 2009 15:59:18 +0200
changeset 3656 9ba2e3253a88
parent 3655 af86ab65a282
child 3657 706d7bf0ae3d
missing authorized value
web/uicfg.py
--- a/web/uicfg.py	Tue Oct 13 15:59:05 2009 +0200
+++ b/web/uicfg.py	Tue Oct 13 15:59:18 2009 +0200
@@ -257,7 +257,8 @@
         }
 
     _allowed_form_types = ('main', 'inlined', 'muledit')
-    _allowed_values = {'main': ('attributes', 'relations', 'metadata', 'hidden'),
+    _allowed_values = {'main': ('attributes', 'inlined', 'relations',
+                                'metadata', 'hidden'),
                        'inlined': ('attributes', 'hidden'),
                        'muledit': ('attributes', 'hidden'),
                        }
@@ -311,7 +312,8 @@
             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=2)
+                     % (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' % (