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 = {}
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)
def __init__(self, model, name, data): Attribute.__init__(self, model, name, data) Dimension.__init__(self, model, name, data)