[3.10] include field's info in deprecation warning
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 21 Oct 2010 17:54:51 +0200
changeset 6575 18588fff9c97
parent 6574 a7bbd69f1d1c
child 6576 481249ecdc4f
[3.10] include field's info in deprecation warning
web/views/formrenderers.py
--- a/web/views/formrenderers.py	Thu Oct 21 09:49:27 2010 +0200
+++ b/web/views/formrenderers.py	Thu Oct 21 17:54:51 2010 +0200
@@ -135,8 +135,8 @@
             if support_args(descr, 'form', 'field'):
                 descr = descr(form, field)
             else:
-                warn("[3.10] field's help callback must now take form and field as argument",
-                     DeprecationWarning)
+                warn("[3.10] field's help callback must now take form and field as argument (%s)"
+                     % field, DeprecationWarning)
                 descr = descr(form)
         if descr:
             help.append('<div class="helper">%s</div>' % self._cw._(descr))