[uicfg] make deprecation message easier to understand stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 12 Feb 2010 22:40:44 +0100
branchstable
changeset 4565 9f991ee66e19
parent 4564 38f0562b744b
child 4566 c49dba55c0a6
[uicfg] make deprecation message easier to understand
web/uicfg.py
--- a/web/uicfg.py	Fri Feb 12 16:48:57 2010 +0100
+++ b/web/uicfg.py	Fri Feb 12 22:40:44 2010 +0100
@@ -446,8 +446,8 @@
 class AutoformIsInlined(RelationTags):
     """XXX for < 3.6 bw compat"""
     def tag_relation(self, key, tag):
-        warn('autoform_is_inlined rtag is deprecated, use autoform_section '
-             'with inlined formtype and "attributes" or "hidden" section',
+        warn('autoform_is_inlined is deprecated, use autoform_section '
+             'with formtype="inlined", section="attributes" or section="hidden"',
              DeprecationWarning, stacklevel=3)
         section = tag and 'inlined' or 'hidden'
         autoform_section.tag_relation(key, 'main', section)