web/formfields.py
changeset 3536 f6c9a5df80fb
parent 3524 a3431f4e2f40
parent 3533 88ceed15a3d3
child 3589 a5432f99f2d9
--- a/web/formfields.py	Tue Sep 29 15:58:44 2009 +0200
+++ b/web/formfields.py	Wed Sep 30 18:57:42 2009 +0200
@@ -181,8 +181,8 @@
         try:
             return widget.render(form, self, renderer)
         except TypeError:
-            warn('widget.render now take the renderer as third argument, please update %s implementation'
-                 % widget.__class__.__name__, DeprecationWarning)
+            warn('[3.3] %s: widget.render now take the renderer as third argument, '
+                 'please update implementation' % widget, DeprecationWarning)
             return widget.render(form, self)
 
     def vocabulary(self, form):
@@ -193,7 +193,7 @@
                 try:
                     vocab = self.choices(form=form)
                 except TypeError:
-                    warn('vocabulary method (eg field.choices) should now take '
+                    warn('[3.3] vocabulary method (eg field.choices) should now take '
                          'the form instance as argument', DeprecationWarning)
                     vocab = self.choices(req=form._cw)
             else: