devtools/testlib.py
changeset 2813 0cf6c8005bf6
parent 2793 bfb21f7a0d13
child 2968 0e3460341023
--- a/devtools/testlib.py	Thu Aug 13 10:49:14 2009 +0200
+++ b/devtools/testlib.py	Thu Aug 13 10:55:58 2009 +0200
@@ -391,18 +391,18 @@
     def pactions(self, req, rset,
                  skipcategories=('addrelated', 'siteactions', 'useractions')):
         return [(a.id, a.__class__)
-                for a in self.vreg['actions'].possible_vobjects(req, rset=rset)
+                for a in self.vreg['actions'].poss_visible_objects(req, rset=rset)
                 if a.category not in skipcategories]
 
     def pactions_by_cats(self, req, rset, categories=('addrelated',)):
         return [(a.id, a.__class__)
-                for a in self.vreg['actions'].possible_vobjects(req, rset=rset)
+                for a in self.vreg['actions'].poss_visible_objects(req, rset=rset)
                 if a.category in categories]
 
     def pactionsdict(self, req, rset,
                      skipcategories=('addrelated', 'siteactions', 'useractions')):
         res = {}
-        for a in self.vreg['actions'].possible_vobjects(req, rset=rset):
+        for a in self.vreg['actions'].poss_visible_objects(req, rset=rset):
             if a.category not in skipcategories:
                 res.setdefault(a.category, []).append(a.__class__)
         return res