Exemple #1
0
    def __init__(self, dataset, name, data):
        Dimension.__init__(self, dataset, name, data)
        self.taxonomy = name

        self.attributes = []
        for name, attr in self.DATE_ATTRIBUTES.items():
            self.attributes.append(Attribute(self, name, attr))

        self._pk_cache = {}
Exemple #2
0
    def __init__(self, dataset, name, data):
        Dimension.__init__(self, dataset, name, data)
        self.taxonomy = data.get('taxonomy', name)

        self.attributes = []
        for name, attr in data.get('attributes', {}).items():
            self.attributes.append(Attribute(self, name, attr))

        # TODO: possibly use a LRU later on?
        self._pk_cache = {}
 def __init__(self, dataset, name, data):
     Attribute.__init__(self, dataset, name, data)
     self.label = data.get('label', name)
 def __init__(self, dataset, name, data):
     Attribute.__init__(self, dataset, name, data)
     Dimension.__init__(self, dataset, name, data)
Exemple #5
0
 def __init__(self, dataset, name, data):
     Attribute.__init__(self, dataset, name, data)
     self.label = data.get('label', name)
Exemple #6
0
 def __init__(self, dataset, name, data):
     Attribute.__init__(self, dataset, name, data)
     Dimension.__init__(self, dataset, name, data)
Exemple #7
0
 def __init__(self, model, name, data):
     Attribute.__init__(self, model, name, data)
     Dimension.__init__(self, model, name, data)