389 for a in self.vreg['views'].possible_views(req, rset=rset)) |
389 for a in self.vreg['views'].possible_views(req, rset=rset)) |
390 |
390 |
391 def pactions(self, req, rset, |
391 def pactions(self, req, rset, |
392 skipcategories=('addrelated', 'siteactions', 'useractions')): |
392 skipcategories=('addrelated', 'siteactions', 'useractions')): |
393 return [(a.id, a.__class__) |
393 return [(a.id, a.__class__) |
394 for a in self.vreg['actions'].possible_vobjects(req, rset=rset) |
394 for a in self.vreg['actions'].poss_visible_objects(req, rset=rset) |
395 if a.category not in skipcategories] |
395 if a.category not in skipcategories] |
396 |
396 |
397 def pactions_by_cats(self, req, rset, categories=('addrelated',)): |
397 def pactions_by_cats(self, req, rset, categories=('addrelated',)): |
398 return [(a.id, a.__class__) |
398 return [(a.id, a.__class__) |
399 for a in self.vreg['actions'].possible_vobjects(req, rset=rset) |
399 for a in self.vreg['actions'].poss_visible_objects(req, rset=rset) |
400 if a.category in categories] |
400 if a.category in categories] |
401 |
401 |
402 def pactionsdict(self, req, rset, |
402 def pactionsdict(self, req, rset, |
403 skipcategories=('addrelated', 'siteactions', 'useractions')): |
403 skipcategories=('addrelated', 'siteactions', 'useractions')): |
404 res = {} |
404 res = {} |
405 for a in self.vreg['actions'].possible_vobjects(req, rset=rset): |
405 for a in self.vreg['actions'].poss_visible_objects(req, rset=rset): |
406 if a.category not in skipcategories: |
406 if a.category not in skipcategories: |
407 res.setdefault(a.category, []).append(a.__class__) |
407 res.setdefault(a.category, []).append(a.__class__) |
408 return res |
408 return res |
409 |
409 |
410 def list_views_for(self, rset): |
410 def list_views_for(self, rset): |