Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/loader/loader.py
Show All 29 Lines | class DepositLoader(loader.LegacyLocalTarLoader): | ||||
""" | """ | ||||
CONFIG_BASE_FILENAME = 'loader/deposit' | CONFIG_BASE_FILENAME = 'loader/deposit' | ||||
ADDITIONAL_CONFIG = { | ADDITIONAL_CONFIG = { | ||||
'extraction_dir': ('str', '/tmp/swh.deposit.loader/'), | 'extraction_dir': ('str', '/tmp/swh.deposit.loader/'), | ||||
} | } | ||||
visit_type = 'deposit' | |||||
def __init__(self, client=None): | def __init__(self, client=None): | ||||
super().__init__( | super().__init__( | ||||
logging_class='swh.deposit.loader.loader.DepositLoader') | logging_class='swh.deposit.loader.loader.DepositLoader') | ||||
self.deposit_client = client if client else PrivateApiDepositClient() | self.deposit_client = client if client else PrivateApiDepositClient() | ||||
def load(self, *, archive_url, deposit_meta_url, deposit_update_url): | def load(self, *, archive_url, deposit_meta_url, deposit_update_url): | ||||
return BufferedLoader.load( | return BufferedLoader.load( | ||||
self, | self, | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |