zenodo_accessrequests/models.py
def confirm_email(self):
        """Confirm that senders email is valid."""
        with db.session.begin_nested():
            if self.status != RequestStatus.EMAIL_VALIDATION:
                raise InvalidRequestStateError(RequestStatus.EMAIL_VALIDATION)

            self.status = RequestStatus.PENDING
        request_confirmed.send(self)
def confirm_email(self):
        with db.session.begin_nested():
            if self.status != RequestStatus.EMAIL_VALIDATION:
                raise InvalidRequestStateError(RequestStatus.EMAIL_VALIDATION)

            self.status = RequestStatus.PENDING
        request_confirmed.send(self)
def confirm_email ( self ) : with db . session . begin_nested ( ) : if self . status != RequestStatus . EMAIL_VALIDATION : raise InvalidRequestStateError ( RequestStatus . EMAIL_VALIDATION ) self . status = RequestStatus . PENDING request_confirmed . send ( self )
Confirm that senders email is valid.
Confirm that senders email is valid .