Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/api/edit.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 | ||||
from rest_framework.request import Request | from rest_framework.request import Request | ||||
from swh.deposit.models import Deposit | from swh.deposit.models import Deposit | ||||
from swh.model.identifiers import QualifiedSWHID | from swh.model.swhids import QualifiedSWHID | ||||
from ..config import DEPOSIT_STATUS_LOAD_SUCCESS | from ..config import DEPOSIT_STATUS_LOAD_SUCCESS | ||||
from ..errors import BAD_REQUEST, DepositError, ParserError | from ..errors import BAD_REQUEST, DepositError, ParserError | ||||
from ..parsers import SWHAtomEntryParser, SWHMultiPartParser | from ..parsers import SWHAtomEntryParser, SWHMultiPartParser | ||||
from .common import APIDelete, APIPut, ParsedRequestHeaders | from .common import APIDelete, APIPut, ParsedRequestHeaders | ||||
class EditAPI(APIPut, APIDelete): | class EditAPI(APIPut, APIDelete): | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |