Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/constants.py
- This file was added.
# Copyright (C) 2017-2020 The Software Heritage developers | |||||
# See the AUTHORS file at the top-level directory of this distribution | |||||
# License: GNU General Public License version 3, or any later version | |||||
# See top-level LICENSE file for more information | |||||
# IRIs (Internationalized Resource identifier) sword 2.0 specified | |||||
EDIT_IRI = "edit_iri" | |||||
SE_IRI = "se_iri" | |||||
EM_IRI = "em_iri" | |||||
CONT_FILE_IRI = "cont_file_iri" | |||||
SD_IRI = "servicedocument" | |||||
COL_IRI = "upload" | |||||
STATE_IRI = "state_iri" | |||||
PRIVATE_GET_RAW_CONTENT = "private-download" | |||||
PRIVATE_CHECK_DEPOSIT = "check-deposit" | |||||
PRIVATE_PUT_DEPOSIT = "private-update" | |||||
PRIVATE_GET_DEPOSIT_METADATA = "private-read" | |||||
PRIVATE_LIST_DEPOSITS = "private-deposit-list" | |||||
ARCHIVE_KEY = "archive" | |||||
METADATA_KEY = "metadata" | |||||
RAW_METADATA_KEY = "raw-metadata" | |||||
ARCHIVE_TYPE = "archive" | |||||
METADATA_TYPE = "metadata" | |||||
AUTHORIZED_PLATFORMS = ["development", "production", "testing"] | |||||
DEPOSIT_STATUS_REJECTED = "rejected" | |||||
DEPOSIT_STATUS_PARTIAL = "partial" | |||||
DEPOSIT_STATUS_DEPOSITED = "deposited" | |||||
DEPOSIT_STATUS_VERIFIED = "verified" | |||||
DEPOSIT_STATUS_LOAD_SUCCESS = "done" | |||||
DEPOSIT_STATUS_LOAD_FAILURE = "failed" |