devtools/testlib.py
changeset 3468 b02fa4db2868
parent 3454 ad1cddc06997
child 3589 a5432f99f2d9
equal deleted inserted replaced
3467:a6405235aac6 3468:b02fa4db2868
   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__)