proper deprecation of TabedPrimaryView stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 17 Feb 2010 09:13:00 +0100
branchstable
changeset 4602 fe5aad04f08b
parent 4601 0f65c40b56b5
child 4603 ce19b0a05db3
proper deprecation of TabedPrimaryView
web/views/tabs.py
--- a/web/views/tabs.py	Wed Feb 17 09:12:42 2010 +0100
+++ b/web/views/tabs.py	Wed Feb 17 09:13:00 2010 +0100
@@ -8,6 +8,7 @@
 
 __docformat__ = "restructuredtext en"
 
+from logilab.common.deprecation import class_renamed
 from logilab.mtconverter import xml_escape
 
 from cubicweb import NoSelectableObject, role
@@ -190,7 +191,8 @@
         self.render_entity_toolbox(entity)
         self.render_entity_title(entity)
         self.render_tabs(self.tabs, self.default_tab, entity)
-TabedPrimaryView = TabbedPrimaryView # XXX deprecate that typo!
+
+TabedPrimaryView = class_renamed('TabedPrimaryView', TabbedPrimaryView)
 
 class PrimaryTab(primary.PrimaryView):
     __regid__ = 'main_tab'