changeset 5246 | 3246b1f88a18 |
parent 5174 | 78438ad513ca |
child 5274 | 16461f675734 |
--- a/cwvreg.py Wed Apr 14 10:29:38 2010 +0200 +++ b/cwvreg.py Wed Apr 14 11:26:36 2010 +0200 @@ -386,6 +386,10 @@ class ActionsRegistry(CWRegistry): + def poss_visible_objects(self, *args, **kwargs): + """return an ordered list of possible actions""" + return sorted(self.possible_objects(*args, **kwargs), + key=lambda x: x.order) def possible_actions(self, req, rset=None, **kwargs): if rset is None: