Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)