def dimension(self, ast): refs = Parser.allrefs(self.cube.model.dimensions, self.cube.model.attributes) if ast not in refs: raise QueryException('Invalid drilldown: %r' % ast) if ast not in self.results: self.results.append(ast)
def field(self, ast): refs = Parser.allrefs(self.cube.model.measures, self.cube.model.dimensions, self.cube.model.attributes) if ast not in refs: raise QueryException('Invalid field: %r' % ast) self.results.append(ast)