[testlib] by default skip new 'manage' action's category
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Feb 2011 18:57:09 +0100
changeset 6967 07d889e3f35d
parent 6966 0f45b1dad08d
child 6968 2abc3befb788
[testlib] by default skip new 'manage' action's category
devtools/testlib.py
--- a/devtools/testlib.py	Wed Feb 09 18:49:41 2011 +0100
+++ b/devtools/testlib.py	Wed Feb 09 18:57:09 2011 +0100
@@ -452,7 +452,8 @@
                       for a in self.vreg['views'].possible_views(req, rset=rset))
 
     def pactions(self, req, rset,
-                 skipcategories=('addrelated', 'siteactions', 'useractions', 'footer')):
+                 skipcategories=('addrelated', 'siteactions', 'useractions',
+                                 'footer', 'manage')):
         return [(a.__regid__, a.__class__)
                 for a in self.vreg['actions'].poss_visible_objects(req, rset=rset)
                 if a.category not in skipcategories]
@@ -463,7 +464,8 @@
                 if a.category in categories]
 
     def pactionsdict(self, req, rset,
-                     skipcategories=('addrelated', 'siteactions', 'useractions', 'footer')):
+                     skipcategories=('addrelated', 'siteactions', 'useractions',
+                                     'footer', 'manage')):
         res = {}
         for a in self.vreg['actions'].poss_visible_objects(req, rset=rset):
             if a.category not in skipcategories: