arxiv.submission.services.classic.load module

Supports loading Submission directly from classic data.

arxiv.submission.services.classic.load.load(rows)[source]

Load a submission entirely from its classic database rows.

Parameters

rows (list) – Items are models.Submission rows loaded from the classic database belonging to a single arXiv e-print/submission group.

Return type

Optional[Submission]

Returns

domain.Submission or None – Aggregated submission object (with .versions). If there is no representation (e.g. all rows are deleted), returns None.

arxiv.submission.services.classic.load.status_from_classic(classic_status)[source]

Map classic status codes to domain submission status.

Return type

str

arxiv.submission.services.classic.load.to_submission(row, submission_id=None)[source]

Generate a representation of submission state from a DB instance.

Parameters
Return type

Submission

Returns

domain.submission.Submission