[deprecation] fix uihelper deprecation warning, use the rtag name, not the class, so it may be copy/pasted stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 11 Jul 2013 10:15:25 +0200
branchstable
changeset 9161 7b51daf84a66
parent 9160 7db0c75acf1c
child 9162 bf0a575d8da8
[deprecation] fix uihelper deprecation warning, use the rtag name, not the class, so it may be copy/pasted
web/uihelper.py
--- a/web/uihelper.py	Thu Jul 11 18:43:29 2013 +0200
+++ b/web/uihelper.py	Thu Jul 11 10:15:25 2013 +0200
@@ -1,4 +1,4 @@
-# copyright 2011-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2011-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -66,8 +66,8 @@
 
 for funcname, tag in backward_compat_funcs:
     msg = ('[3.16] uihelper.%(name)s is deprecated, please use '
-           'web.uicfg.%(classname)s.%(name)s' % dict(
-               name=funcname, classname=tag.__class__.__name__))
+           'web.views.uicfg.%(rtagid)s.%(name)s' % dict(
+               name=funcname, rtagid=tag.__regid__))
     globals()[funcname] = deprecated(msg)(getattr(tag, funcname))