# HG changeset patch # User Katia Saurfelt # Date 1239896279 -7200 # Node ID a793dc5bfd670ef47a0989e2e5253c1a02569979 # Parent 3645800647ef8cb771a146d81d2228b96eb0c885 add a function to retrieve a list of mainactions diff -r 3645800647ef -r a793dc5bfd67 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"""