# HG changeset patch # User Sylvain Thénault # Date 1255442358 -7200 # Node ID 9ba2e3253a8868b37b5a365f3aece1f1a729876a # Parent af86ab65a2821614cfd05bffdecb3214c7cfc5a7 missing authorized value diff -r af86ab65a282 -r 9ba2e3253a88 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' % (