Coverage for portality/constants.py: 100%
42 statements
« prev ^ index » next coverage.py v6.4.2, created at 2022-09-21 00:49 +0100
« prev ^ index » next coverage.py v6.4.2, created at 2022-09-21 00:49 +0100
1# ~~Constants:Config~~
2APPLICATION_STATUS_ACCEPTED = "accepted"
3APPLICATION_STATUS_REJECTED = "rejected"
4APPLICATION_STATUS_UPDATE_REQUEST = "update_request"
5APPLICATION_STATUS_REVISIONS_REQUIRED = "revisions_required"
6APPLICATION_STATUS_PENDING = "pending"
7APPLICATION_STATUS_IN_PROGRESS = "in progress"
8APPLICATION_STATUS_COMPLETED = "completed"
9APPLICATION_STATUS_ON_HOLD = "on hold"
10APPLICATION_STATUS_READY = "ready"
12APPLICATION_STATUSES_ALL = [
13 APPLICATION_STATUS_ACCEPTED,
14 APPLICATION_STATUS_REJECTED,
15 APPLICATION_STATUS_UPDATE_REQUEST,
16 APPLICATION_STATUS_REVISIONS_REQUIRED,
17 APPLICATION_STATUS_PENDING,
18 APPLICATION_STATUS_IN_PROGRESS,
19 APPLICATION_STATUS_COMPLETED,
20 APPLICATION_STATUS_ON_HOLD,
21 APPLICATION_STATUS_READY
22]
24APPLICATION_TYPE_UPDATE_REQUEST = "update_request"
25APPLICATION_TYPE_NEW_APPLICATION = "new_application"
27INDEX_RECORD_TYPE_UPDATE_REQUEST_UNFINISHED = "Update Request (in progress)"
28INDEX_RECORD_TYPE_UPDATE_REQUEST_FINISHED = "Update Request (finished)"
29INDEX_RECORD_TYPE_NEW_APPLICATION_UNFINISHED = "Application (in progress)"
30INDEX_RECORD_TYPE_NEW_APPLICATION_FINISHED = "Application (finished)"
32PROVENANCE_STATUS_REJECTED = "status:rejected"
33PROVENANCE_STATUS_ACCEPTED = "status:accepted"
35LOCK_APPLICATION = "suggestion"
36LOCK_JOURNAL = "journal"
38IDENT_TYPE_DOI = "doi"
39LINK_TYPE_FULLTEXT = "fulltext"
41# ~~-> Todo:Service~~
42TODO_MANED_STALLED = "todo_maned_stalled"
43TODO_MANED_FOLLOW_UP_OLD = "todo_maned_follow_up_old"
44TODO_MANED_READY = "todo_maned_ready"
45TODO_MANED_COMPLETED = "todo_maned_completed"
46TODO_MANED_ASSIGN_PENDING = "todo_maned_assign_pending"
48EVENT_ACCOUNT_CREATED = "account:created"
49EVENT_ACCOUNT_PASSWORD_RESET = "account:password_reset"
50EVENT_APPLICATION_STATUS = "application:status"
51EVENT_APPLICATION_ASSED_ASSIGNED = "application:assed:assigned"
52EVENT_APPLICATION_CREATED = "application:created"
53EVENT_APPLICATION_EDITOR_GROUP_ASSIGNED = "application:editor_group:assigned"
54EVENT_JOURNAL_ASSED_ASSIGNED = "journal:assed:assigned"
55EVENT_JOURNAL_EDITOR_GROUP_ASSIGNED = "journal:editor_group:assigned"
57NOTIFICATION_CLASSIFICATION_STATUS_CHANGE = "status_change"
58NOTIFICATION_CLASSIFICATION_ASSIGN = "assign"
59NOTIFICATION_CLASSIFICATION_CREATE = "create"
60NOTIFICATION_CLASSIFICATION_FINISHED = "finished"
62BACKGROUND_JOB_FINISHED = "bg:job_finished"
64PROCESS__QUICK_REJECT = "quick_reject"
66# Role
67ROLE_ASSOCIATE_EDITOR = 'associate_editor'