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
Esempio n. 2
0
 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
Esempio n. 4
0
 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 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
Esempio n. 6
0
 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
Esempio n. 7
0
 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
Esempio n. 8
0
 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
Esempio n. 9
0
 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