cwvreg.py
branchtls-sprint
changeset 1477 b056a49c16dc
parent 1475 5c1ec97f317e
parent 1381 6042f1b342bb
child 1509 c481f0125382
equal deleted inserted replaced
1476:f94b41709ce6 1477:b056a49c16dc
   208                                   key=lambda x: x.propval('order'))
   208                                   key=lambda x: x.propval('order'))
   209                 if x.propval('visible')]
   209                 if x.propval('visible')]
   210 
   210 
   211     def possible_actions(self, req, rset, **kwargs):
   211     def possible_actions(self, req, rset, **kwargs):
   212         if rset is None:
   212         if rset is None:
   213             actions = self.possible_vobjects('actions', req, rset)
   213             actions = self.possible_vobjects('actions', req, rset, **kwargs)
   214         else:
   214         else:
   215             actions = rset.possible_actions() # cached implementation
   215             actions = rset.possible_actions(**kwargs) # cached implementation
   216         result = {}
   216         result = {}
   217         for action in actions:
   217         for action in actions:
   218             result.setdefault(action.category, []).append(action)
   218             result.setdefault(action.category, []).append(action)
   219         return result
   219         return result
   220 
   220