# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1373530525 -7200
# Node ID 7b51daf84a66bf074f7091e7fb7af8182805c0e7
# Parent  7db0c75acf1c0f99253a777e84696acc2d3735dd
[deprecation] fix uihelper deprecation warning, use the rtag name, not the class, so it may be copy/pasted

diff -r 7db0c75acf1c -r 7b51daf84a66 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))