zenodo_accessrequests/models.py
def reject(self, message=None):
        """Reject request."""
        with db.session.begin_nested():
            if self.status != RequestStatus.PENDING:
                raise InvalidRequestStateError(RequestStatus.PENDING)
            self.status = RequestStatus.REJECTED
        request_rejected.send(self, message=message)
def reject(self, message=None):
        with db.session.begin_nested():
            if self.status != RequestStatus.PENDING:
                raise InvalidRequestStateError(RequestStatus.PENDING)
            self.status = RequestStatus.REJECTED
        request_rejected.send(self, message=message)
def reject ( self , message = None ) : with db . session . begin_nested ( ) : if self . status != RequestStatus . PENDING : raise InvalidRequestStateError ( RequestStatus . PENDING ) self . status = RequestStatus . REJECTED request_rejected . send ( self , message = message )
Reject request.
Reject request .