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¶
-
-
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¶
-
-
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 aSubmission
.-
NAME
= 'add hold'¶
-
NAMED
= 'hold added'¶
-
hold_type
= 'patch'¶
-
-
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¶
-
-
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¶
-
-
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 aSubmission
.-
NAME
= 'add waiver'¶
-
NAMED
= 'waiver added'¶
-
project
(submission)[source]¶ Add the
Waiver
to theSubmission
.- Return type
-
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.
-
-
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 aSubmission
.-
NAME
= 'remove hold'¶
-
NAMED
= 'hold removed'¶
-
hold_type
= 'patch'¶
-