selectors.py
changeset 1887 7e19c94ce0d7
parent 1784 f0fb914e57db
child 1909 58374d1f6d9b
equal deleted inserted replaced
1886:f0e28ddba7c5 1887:7e19c94ce0d7
   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.