equal
deleted
inserted
replaced
243 |
243 |
244 def _prepare(self, cnx, rql, kwargs=None): |
244 def _prepare(self, cnx, rql, kwargs=None): |
245 plan = self._prepare_plan(cnx, rql, kwargs, simplify=False) |
245 plan = self._prepare_plan(cnx, rql, kwargs, simplify=False) |
246 plan.preprocess(plan.rqlst) |
246 plan.preprocess(plan.rqlst) |
247 rqlst = plan.rqlst.children[0] |
247 rqlst = plan.rqlst.children[0] |
248 rqlst.solutions = remove_unused_solutions(rqlst, rqlst.solutions, {}, self.repo.schema)[0] |
248 rqlst.solutions = remove_unused_solutions(rqlst, rqlst.solutions, self.repo.schema)[0] |
249 return rqlst |
249 return rqlst |
250 |
250 |
251 def user_groups_session(self, *groups): |
251 def user_groups_session(self, *groups): |
252 """lightweight session using the current user with hi-jacked groups""" |
252 """lightweight session using the current user with hi-jacked groups""" |
253 # use self.session.user.eid to get correct owned_by relation, unless explicit eid |
253 # use self.session.user.eid to get correct owned_by relation, unless explicit eid |