equal
deleted
inserted
replaced
1028 return u'<rql_condition "%s" at %x>' % (self.rql, id(self)) |
1028 return u'<rql_condition "%s" at %x>' % (self.rql, id(self)) |
1029 |
1029 |
1030 def score(self, req, rset, row, col): |
1030 def score(self, req, rset, row, col): |
1031 try: |
1031 try: |
1032 return len(req.execute(self.rql, {'x': rset[row][col], |
1032 return len(req.execute(self.rql, {'x': rset[row][col], |
1033 'u': req.user.eid}, 'x')) |
1033 'u': req.user.eid})) |
1034 except Unauthorized: |
1034 except Unauthorized: |
1035 return 0 |
1035 return 0 |
1036 |
1036 |
1037 # logged user selectors ######################################################## |
1037 # logged user selectors ######################################################## |
1038 |
1038 |