arxiv.submission.services.classic.patch module

Methods for updating Submission with state outside event scope.

arxiv.submission.services.classic.patch.patch_cross(submission, row, request_number=-1)[source]
Return type

Submission

arxiv.submission.services.classic.patch.patch_hold(submission, row)[source]

Patch hold-related data from this database row.

Return type

Submission

arxiv.submission.services.classic.patch.patch_jref(submission, row)[source]

Patch a domain.submission.Submission with JREF data outside the event scope.

Parameters

submission (domain.submission.Submission) – The submission object to patch.

Return type

Submission

Returns

domain.submission.Submission – The same submission that was passed; now patched with JREF data outside the scope of the event model.

arxiv.submission.services.classic.patch.patch_withdrawal(submission, row, request_number=-1)[source]
Return type

Submission

arxiv.submission.services.classic.patch.setattr_changed(obj, field, value)[source]

Set an attribute on an object only if the value does not match provided.

Parameters
  • obj (object) –

  • field (str) – The name of the attribute on obj to set.

  • value (object) –

Return type

bool

Returns

bool – True if the attribute was set; otherwise False.