def __init__(self, filename, cache_filename, load_all_on_init=True, logger=None): picture_info.__init__(self, filename, logger) self._cached_data = caching.property_cache_json(picture_info(filename, logger), cache_filename, logger=logger)
def __init__(self, *args, **kwargs): itemlist.__init__(self, *args, **kwargs) if not self._create_cache: from pygal import logger self.logger = logger self._cached_data = caching.property_cache_json(itemlist(*args, **kwargs), self.prop_item_path(), load_all_on_init=True, logger=self.logger)