[web test] secondary view isn't listed anymore by possible view since it use the class_deprecated metaclass stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 23 Sep 2011 09:10:58 +0200
branchstable
changeset 7840 d6733436b0dd
parent 7839 daf46963f4fe
child 7842 fa7e463cae9d
[web test] secondary view isn't listed anymore by possible view since it use the class_deprecated metaclass
web/test/unittest_viewselector.py
web/views/baseviews.py
--- a/web/test/unittest_viewselector.py	Thu Sep 22 17:29:40 2011 +0200
+++ b/web/test/unittest_viewselector.py	Fri Sep 23 09:10:58 2011 +0200
@@ -126,7 +126,6 @@
                               ('rsetxml', xmlrss.XMLRsetView),
                               ('rss', xmlrss.RSSView),
                               ('sameetypelist', baseviews.SameETypeListView),
-                              ('secondary', baseviews.SecondaryView),
                               ('security', management.SecurityManagementView),
                               ('table', tableview.TableView),
                               ('text', baseviews.TextView),
@@ -150,7 +149,6 @@
                               ('rsetxml', xmlrss.XMLRsetView),
                               ('rss', xmlrss.RSSView),
                               ('sameetypelist', baseviews.SameETypeListView),
-                              ('secondary', baseviews.SecondaryView),
                               ('security', management.SecurityManagementView),
                               ('table', tableview.TableView),
                               ('text', baseviews.TextView),
@@ -204,7 +202,6 @@
                               ('primary', primary.PrimaryView),] + RDFVIEWS + [
                               ('rsetxml', xmlrss.XMLRsetView),
                               ('rss', xmlrss.RSSView),
-                              ('secondary', baseviews.SecondaryView),
                               ('security', management.SecurityManagementView),
                               ('table', tableview.TableView),
                               ('text', baseviews.TextView),
@@ -240,7 +237,6 @@
                               ('rsetxml', xmlrss.XMLRsetView),
                               ('rss', xmlrss.RSSView),
                               ('sameetypelist', baseviews.SameETypeListView),
-                              ('secondary', baseviews.SecondaryView),
                               ('security', management.SecurityManagementView),
                               ('table', tableview.TableView),
                               ('text', baseviews.TextView),
--- a/web/views/baseviews.py	Thu Sep 22 17:29:40 2011 +0200
+++ b/web/views/baseviews.py	Fri Sep 23 09:10:58 2011 +0200
@@ -687,7 +687,6 @@
     __metaclass__ = class_deprecated
     __deprecation_warning__ = '[3.9] the secondary view is deprecated, use one of oneline/incontext/outofcontext'
     __regid__ = 'secondary'
-    title = _('secondary')
 
     def cell_call(self, row, col, **kwargs):
         entity = self.cw_rset.get_entity(row, col)