equal
deleted
inserted
replaced
283 etype = iter(ptypes).next() |
283 etype = iter(ptypes).next() |
284 eschema = self.schema.eschema(etype) |
284 eschema = self.schema.eschema(etype) |
285 if not eschema.has_perm(self.session, action): |
285 if not eschema.has_perm(self.session, action): |
286 rqlexprs = eschema.get_rqlexprs(action) |
286 rqlexprs = eschema.get_rqlexprs(action) |
287 if not rqlexprs: |
287 if not rqlexprs: |
288 raise Unauthorised() |
288 raise Unauthorized() |
289 self.insert_snippets([((varname, 'X'), rqlexprs)]) |
289 self.insert_snippets([((varname, 'X'), rqlexprs)]) |
290 |
290 |
291 def snippet_subquery(self, varmap, transformedsnippet): |
291 def snippet_subquery(self, varmap, transformedsnippet): |
292 """introduce the given snippet in a subquery""" |
292 """introduce the given snippet in a subquery""" |
293 subselect = stmts.Select() |
293 subselect = stmts.Select() |