[test] fix unittest_viewselector
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 14 Apr 2010 09:11:42 +0200
changeset 5241 1460d69672bc
parent 5239 471554b842d2
child 5242 0063d990ac5a
[test] fix unittest_viewselector
web/test/unittest_viewselector.py
web/views/actions.py
--- a/web/test/unittest_viewselector.py	Wed Apr 14 08:49:23 2010 +0200
+++ b/web/test/unittest_viewselector.py	Wed Apr 14 09:11:42 2010 +0200
@@ -96,7 +96,7 @@
                               ('list', baseviews.ListView),
                               ('oneline', baseviews.OneLineView),
                               ('owlabox', owl.OWLABOXView),
-                              ('primary', primary.PrimaryView),
+                              ('primary', cwuser.CWGroupPrimaryView),
                               ('rsetxml', xmlrss.XMLRsetView),
                               ('rss', xmlrss.RSSView),
                               ('sameetypelist', baseviews.SameETypeListView),
@@ -120,7 +120,7 @@
                               ('list', baseviews.ListView),
                               ('oneline', baseviews.OneLineView),
                               ('owlabox', owl.OWLABOXView),
-                              ('primary', primary.PrimaryView),
+                              ('primary', cwuser.CWGroupPrimaryView),
                               ('rsetxml', xmlrss.XMLRsetView),
                               ('rss', xmlrss.RSSView),
                               ('sameetypelist', baseviews.SameETypeListView),
--- a/web/views/actions.py	Wed Apr 14 08:49:23 2010 +0200
+++ b/web/views/actions.py	Wed Apr 14 09:11:42 2010 +0200
@@ -239,7 +239,7 @@
     __select__ = action.Action.__select__ & one_line_rset() & non_final_entity()
 
     submenu = _('addrelated')
-    order = 20
+    order = 17
 
     def fill_menu(self, box, menu):
         # when there is only one item in the sub-menu, replace the sub-menu by