[test] we should properly use vreg method to compute solutions stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Feb 2010 07:58:55 +0100
branchstable
changeset 4711 7ef3b029e10b
parent 4710 4d9ad6a4f261
child 4712 8dd774c9c3bb
[test] we should properly use vreg method to compute solutions
server/test/unittest_security.py
--- a/server/test/unittest_security.py	Fri Feb 26 07:58:02 2010 +0100
+++ b/server/test/unittest_security.py	Fri Feb 26 07:58:55 2010 +0100
@@ -30,7 +30,7 @@
         rqlst = self.repo.vreg.rqlhelper.parse(rql).children[0]
         origgroups = self.schema['Personne'].get_groups('read')
         self.schema['Personne'].set_action_permissions('read', ('users', 'managers'))
-        self.repo.vreg.rqlhelper.compute_solutions(rqlst)
+        self.repo.vreg.solutions(self.session, rqlst, None)
         solution = rqlst.solutions[0]
         check_read_access(self.schema, self.session.user, rqlst, solution)
         cnx = self.login('anon')