submissions.helpers module

submissions.helpers.retrieve_pdf_from_arxiv(arxiv_id)[source]

Try to download the pdf as bytes object from arXiv for a certain arXiv Identifier. Raise ArxivPDFNotFound instead.

Arxiv_id

Arxiv Identifier with or without (takes latest version instead) version number

submissions.helpers.check_verified_author(submission, user)[source]

Check if user is verified author of Submission.

submissions.helpers.check_unverified_author(submission, user)[source]

Check if user may be author of Submission.

Only return true if author is unverified. Verified authors will return false.

submissions.helpers.to_ascii_only(str)[source]

Convert string to lowercase, ASCII-only characters without punctuation and whitespaces.