add a function to retrieve a list of mainactions
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Thu, 16 Apr 2009 17:37:59 +0200
changeset 1383 a793dc5bfd67
parent 1378 3645800647ef
child 1384 c4f4f8bacb92
add a function to retrieve a list of mainactions
devtools/apptest.py
--- a/devtools/apptest.py	Wed Apr 15 16:42:00 2009 -0700
+++ b/devtools/apptest.py	Thu Apr 16 17:37:59 2009 +0200
@@ -228,6 +228,10 @@
     def paddrelactions(self, req, rset):
         return [(a.id, a.__class__) for a in self.vreg.possible_vobjects('actions', req, rset)
                 if a.category == 'addrelated']
+
+    def pmainactions(self, req, rset):
+        return [(a.id, a.__class__) for a in self.vreg.possible_vobjects('actions', req, rset)
+                if a.category == 'mainactions']
                
     def remote_call(self, fname, *args):
         """remote call simulation"""