def nonadmin_none_request(self, none_mod_preprint, requester): request = PreprintRequestFactory( creator=requester, target=none_mod_preprint, request_type=RequestTypes.WITHDRAWAL.value, machine_state=DefaultStates.INITIAL.value) request.run_submit(requester) return request
def withdrawal_request(target): request = PreprintRequestFactory( creator=user, target=target, request_type=RequestTypes.WITHDRAWAL.value, machine_state=DefaultStates.INITIAL.value) request.run_submit(user) return request
def post_request(self, post_mod_preprint, admin): request = PreprintRequestFactory( creator=admin, target=post_mod_preprint, request_type=RequestTypes.WITHDRAWAL.value, machine_state=DefaultStates.INITIAL.value) request.run_submit(admin) return request
def auto_approved_pre_request(self, auto_withdrawable_pre_mod_preprint, admin): request = PreprintRequestFactory( creator=admin, target=auto_withdrawable_pre_mod_preprint, request_type=RequestTypes.WITHDRAWAL.value, machine_state=DefaultStates.INITIAL.value) request.run_submit(admin) return request
def withdrawal_request(self, preprint, submitter): withdrawal_request = PreprintRequestFactory( creator=submitter, target=preprint, request_type=RequestTypes.WITHDRAWAL.value, machine_state=DefaultStates.INITIAL.value, ) withdrawal_request.run_submit(submitter) return withdrawal_request
def auto_approved_pre_request(self, auto_withdrawable_pre_mod_preprint, admin): request = PreprintRequestFactory( creator=admin, target=auto_withdrawable_pre_mod_preprint, request_type=RequestTypes.WITHDRAWAL.value, machine_state=DefaultStates.INITIAL.value ) request.run_submit(admin) return request
def post_request(self, post_mod_preprint, admin): request = PreprintRequestFactory( creator=admin, target=post_mod_preprint, request_type=RequestTypes.WITHDRAWAL.value, machine_state=DefaultStates.INITIAL.value ) request.run_submit(admin) return request