selectors.py
branchstable
changeset 1909 58374d1f6d9b
parent 1907 0f3363d24239
parent 1887 7e19c94ce0d7
child 1977 606923dff11b
equal deleted inserted replaced
1908:4ea82ac0559a 1909:58374d1f6d9b
   924             return len(req.execute(self.rql, {'x': rset[row][col],
   924             return len(req.execute(self.rql, {'x': rset[row][col],
   925                                               'u': req.user.eid}, 'x'))
   925                                               'u': req.user.eid}, 'x'))
   926         except Unauthorized:
   926         except Unauthorized:
   927             return 0
   927             return 0
   928 
   928 
       
   929     def __repr__(self):
       
   930         return u'<rql_condition "%s" at %x>' % (self.rql, id(self))
   929 
   931 
   930 class but_etype(EntitySelector):
   932 class but_etype(EntitySelector):
   931     """accept if the given entity types are not found in the result set.
   933     """accept if the given entity types are not found in the result set.
   932 
   934 
   933     See `EntitySelector` documentation for behaviour when row is not specified.
   935     See `EntitySelector` documentation for behaviour when row is not specified.