# HG changeset patch # User Sylvain Thénault # Date 1268986089 -3600 # Node ID 8ddd5e938804c226cb535c170e6f51367d2e5a07 # Parent 96f67c5be0e6020ed95ab7a3a0c6b661179ef12c cleanup diff -r 96f67c5be0e6 -r 8ddd5e938804 server/querier.py --- a/server/querier.py Fri Mar 19 09:08:00 2010 +0100 +++ b/server/querier.py Fri Mar 19 09:08:09 2010 +0100 @@ -69,6 +69,7 @@ rdef = rschema.rdef(solution[rel.children[0].name], solution[rel.children[1].children[0].name]) if not user.matching_groups(rdef.get_groups('read')): + # XXX rqlexpr not allowed raise Unauthorized('read', rel.r_type) localchecks = {} # iterate on defined_vars and not on solutions to ignore column aliases @@ -284,8 +285,7 @@ myrqlst = select.copy(solutions=lchecksolutions) myunion.append(myrqlst) # in-place rewrite + annotation / simplification - lcheckdef = [((varmap, 'X'), rqlexprs) - for varmap, rqlexprs in lcheckdef] + lcheckdef = [((var, 'X'), rqlexprs) for var, rqlexprs in lcheckdef] rewrite(myrqlst, lcheckdef, lchecksolutions, self.args) add_noinvariant(noinvariant, restricted, myrqlst, nbtrees) if () in localchecks: