devtools/repotest.py
changeset 9098 5467fb901931
parent 9020 cb87e831c183
child 9445 65d93a4fd11c
equal deleted inserted replaced
9097:39be1e548270 9098:5467fb901931
   322             self.repo.vreg.rqlhelper.annotate(rqlst)
   322             self.repo.vreg.rqlhelper.annotate(rqlst)
   323             for select in rqlst.children:
   323             for select in rqlst.children:
   324                 select.solutions.sort()
   324                 select.solutions.sort()
   325         else:
   325         else:
   326             rqlst.solutions.sort()
   326             rqlst.solutions.sort()
   327         return self.o.plan_factory(rqlst, kwargs, self.session)
   327         with self.session.ensure_cnx_set:
       
   328             return self.o.plan_factory(rqlst, kwargs, self.session)
   328 
   329 
   329 
   330 
   330 # monkey patch some methods to get predicatable results #######################
   331 # monkey patch some methods to get predicatable results #######################
   331 
   332 
   332 from cubicweb import rqlrewrite
   333 from cubicweb import rqlrewrite