arxiv.submission.domain.event.flag module

Events/commands related to quality assurance.

class arxiv.submission.domain.event.flag.AddContentFlag(creator, created=None, proxy=None, client=None, submission_id=None, committed=False, before=None, after=None, event_type=<factory>, event_version=<factory>, flag_data=None, comment=None, flag_type=None)[source]

Bases: arxiv.submission.domain.event.flag.AddFlag

Add a domain.ContentFlag related to content.

NAME = 'add content flag'
NAMED = 'content flag added'
flag_type = None
project(submission)[source]

Add the flag to the submission.

Return type

Submission

validate(submission)[source]

Verify that we have a known flag.

Return type

None

class arxiv.submission.domain.event.flag.AddFlag(creator, created=None, proxy=None, client=None, submission_id=None, committed=False, before=None, after=None, event_type=<factory>, event_version=<factory>, flag_data=None, comment=None)[source]

Bases: arxiv.submission.domain.event.base.Event

Base class for flag events; not for direct use.

NAME = 'add flag'
NAMED = 'flag added'
comment = None
flag_data = None
project(submission)[source]

Not implemented.

Return type

Submission

validate(submission)[source]

Not implemented.

Return type

None

class arxiv.submission.domain.event.flag.AddHold(creator, created=None, proxy=None, client=None, submission_id=None, committed=False, before=None, after=None, event_type=<factory>, event_version=<factory>, hold_type=<Type.PATCH: 'patch'>, hold_reason=<factory>)[source]

Bases: arxiv.submission.domain.event.base.Event

Add a Hold to a Submission.

NAME = 'add hold'
NAMED = 'hold added'
hold_type = 'patch'
project(submission)[source]

Add the hold to the submission.

Return type

Submission

validate(submission)[source]
Return type

None

class arxiv.submission.domain.event.flag.AddMetadataFlag(creator, created=None, proxy=None, client=None, submission_id=None, committed=False, before=None, after=None, event_type=<factory>, event_version=<factory>, flag_data=None, comment=None, flag_type=None, field=None)[source]

Bases: arxiv.submission.domain.event.flag.AddFlag

Add a domain.MetadataFlag related to the metadata.

NAME = 'add metadata flag'
NAMED = 'metadata flag added'
field = None

Name of the metadata field to which the flag applies.

flag_type = None
project(submission)[source]

Add the flag to the submission.

Return type

Submission

validate(submission)[source]

Verify that we have a known flag and metadata field.

Return type

None

class arxiv.submission.domain.event.flag.AddUserFlag(creator, created=None, proxy=None, client=None, submission_id=None, committed=False, before=None, after=None, event_type=<factory>, event_version=<factory>, flag_data=None, comment=None, flag_type=None)[source]

Bases: arxiv.submission.domain.event.flag.AddFlag

Add a domain.UserFlag related to the submitter.

NAME = 'add user flag'
NAMED = 'user flag added'
flag_type = None
project(submission)[source]

Add the flag to the submission.

Return type

Submission

validate(submission)[source]

Verify that we have a known flag.

Return type

None

class arxiv.submission.domain.event.flag.AddWaiver(creator, created=None, proxy=None, client=None, submission_id=None, committed=False, before=None, after=None, event_type=<factory>, event_version=<factory>, waiver_type=<Type.SOURCE_OVERSIZE: 'source_oversize'>, waiver_reason=<factory>)[source]

Bases: arxiv.submission.domain.event.base.Event

Add a Waiver to a Submission.

NAME = 'add waiver'
NAMED = 'waiver added'
project(submission)[source]

Add the Waiver to the Submission.

Return type

Submission

validate(submission)[source]
Return type

None

waiver_type = 'source_oversize'
class arxiv.submission.domain.event.flag.RemoveFlag(creator, created=None, proxy=None, client=None, submission_id=None, committed=False, before=None, after=None, event_type=<factory>, event_version=<factory>, flag_id=None)[source]

Bases: arxiv.submission.domain.event.base.Event

Remove a domain.Flag from a submission.

NAME = 'remove flag'
NAMED = 'flag removed'
flag_id = None

This is the event_id of the event that added the flag.

project(submission)[source]

Remove the flag from the submission.

Return type

Submission

validate(submission)[source]

Verify that the flag exists.

Return type

None

class arxiv.submission.domain.event.flag.RemoveHold(creator, created=None, proxy=None, client=None, submission_id=None, committed=False, before=None, after=None, event_type=<factory>, event_version=<factory>, hold_event_id=<factory>, hold_type=<Type.PATCH: 'patch'>, removal_reason=<factory>)[source]

Bases: arxiv.submission.domain.event.base.Event

Remove a Hold from a Submission.

NAME = 'remove hold'
NAMED = 'hold removed'
hold_type = 'patch'
project(submission)[source]

Remove the hold from the submission.

Return type

Submission

validate(submission)[source]
Return type

None