Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/config.py
# Copyright (C) 2017-2020 The Software Heritage developers | # Copyright (C) 2017-2020 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import os | import os | ||||
from typing import Any, Dict | from typing import Any, Dict | ||||
from swh.core import config | from swh.core import config | ||||
from swh.deposit import __version__ | from swh.deposit import __version__ | ||||
from swh.scheduler import get_scheduler | from swh.scheduler import get_scheduler | ||||
from swh.scheduler.interface import SchedulerInterface | from swh.scheduler.interface import SchedulerInterface | ||||
from swh.storage import get_storage | from swh.storage import get_storage | ||||
from swh.storage.interface import StorageInterface | from swh.storage.interface import StorageInterface | ||||
# IRIs (Internationalized Resource identifier) sword 2.0 specified | # IRIs (Internationalized Resource identifier) sword 2.0 specified | ||||
EDIT_SE_IRI = "edit_se_iri" | EDIT_IRI = "edit_iri" | ||||
SE_IRI = "se_iri" | |||||
EM_IRI = "em_iri" | EM_IRI = "em_iri" | ||||
CONT_FILE_IRI = "cont_file_iri" | CONT_FILE_IRI = "cont_file_iri" | ||||
SD_IRI = "servicedocument" | SD_IRI = "servicedocument" | ||||
COL_IRI = "upload" | COL_IRI = "upload" | ||||
STATE_IRI = "state_iri" | STATE_IRI = "state_iri" | ||||
PRIVATE_GET_RAW_CONTENT = "private-download" | PRIVATE_GET_RAW_CONTENT = "private-download" | ||||
PRIVATE_CHECK_DEPOSIT = "check-deposit" | PRIVATE_CHECK_DEPOSIT = "check-deposit" | ||||
PRIVATE_PUT_DEPOSIT = "private-update" | PRIVATE_PUT_DEPOSIT = "private-update" | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |