Beispiel #1
0
 def create_resource_repository(self):
     return IndexedGroupHistoryDataRepository(
         self.storage,
         self.resource_name,
         "lambda resource_group:resource_group[0:4]",
         resource_base_path=self.resource_base_path,
         cache=self.cache)
 def create_resource_repository(self):
     return IndexedGroupHistoryDataRepository(
         LocalStorage(settings.LOCAL_STORAGE_DIR),
         settings.RESOURCE_NAME,
         get_metaname_code,
         index_metaname=self.index_metaname,
         f_earliest_metaname=None if settings.ARCHIVE_LIFESPAN is None
         or settings.ARCHIVE_LIFESPAN <= 0 else get_earliest_metaname)
 def create_resource_repository(self):
     return IndexedGroupHistoryDataRepository(
         self.storage,
         self.resource_name,
         f_metaname_code,
         resource_base_path=self.resource_base_path,
         cache=self.cache,
         f_earliest_metaname=None
     )