384 return self.execute(' '.join(rql), args, req=req).get_entity(0, 0) |
384 return self.execute(' '.join(rql), args, req=req).get_entity(0, 0) |
385 |
385 |
386 # vregistry inspection utilities ########################################### |
386 # vregistry inspection utilities ########################################### |
387 |
387 |
388 def pviews(self, req, rset): |
388 def pviews(self, req, rset): |
389 return sorted((a.id, a.__class__) |
389 return sorted((a.__regid__, a.__class__) |
390 for a in self.vreg['views'].possible_views(req, rset=rset)) |
390 for a in self.vreg['views'].possible_views(req, rset=rset)) |
391 |
391 |
392 def pactions(self, req, rset, |
392 def pactions(self, req, rset, |
393 skipcategories=('addrelated', 'siteactions', 'useractions')): |
393 skipcategories=('addrelated', 'siteactions', 'useractions')): |
394 return [(a.__regid__, a.__class__) |
394 return [(a.__regid__, a.__class__) |