cwvreg.py
changeset 3451 6b46d73823f5
parent 3376 f5c69485381f
child 3655 af86ab65a282
equal deleted inserted replaced
3448:495862266785 3451:6b46d73823f5
   208 
   208 
   209 class ActionsRegistry(CWRegistry):
   209 class ActionsRegistry(CWRegistry):
   210 
   210 
   211     def possible_actions(self, req, rset=None, **kwargs):
   211     def possible_actions(self, req, rset=None, **kwargs):
   212         if rset is None:
   212         if rset is None:
   213             actions = self.possible_vobjects(req, rset=rset, **kwargs)
   213             actions = self.poss_visible_objects(req, rset=rset, **kwargs)
   214         else:
   214         else:
   215             actions = rset.possible_actions(**kwargs) # 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)