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
- Returns
domain.Submission
orNone
– Aggregated submission object (with.versions
). If there is no representation (e.g. all rows are deleted), returnsNone
.
-
arxiv.submission.services.classic.load.
status_from_classic
(classic_status)[source]¶ Map classic status codes to domain submission status.
- Return type
-
arxiv.submission.services.classic.load.
to_submission
(row, submission_id=None)[source]¶ Generate a representation of submission state from a DB instance.
- Parameters
row (
models.Submission
) – Database row representing adomain.submission.Submission
.submission_id (int or None) – If provided the database value is overridden when setting
domain.Submission.submission_id
.
- Return type
- Returns