cubicweb/devtools/repotest.py
changeset 11237 f32134dd0067
parent 11227 1c7ce09d2a36
child 11250 597f02c5cf5a
equal deleted inserted replaced
11232:25ec9be5f305 11237:f32134dd0067
   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