-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconstants.py
123 lines (111 loc) · 4.09 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core business involves the administration of students, teachers,
# courses, programs and so on.
#
# Copyright (C) 2015-2024 Université catholique de Louvain (http://www.uclouvain.be)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# A copy of this license - GNU General Public License - is available
# at the root of the source code of this program. If not,
# see http://www.gnu.org/licenses/.
#
# ##############################################################################
# Association between a read-only tab name (path name) and an action link key
from django.utils.translation import gettext_lazy as _
READ_ACTIONS_BY_TAB = {
# Personal data
'coordonnees': 'retrieve_coordinates',
'cotutelle': 'retrieve_cotutelle',
'person': 'retrieve_person',
# Previous experience
'curriculum': 'retrieve_curriculum',
'education': 'retrieve_secondary_studies',
'languages': 'retrieve_languages',
# Project
'training-choice': 'retrieve_training_choice',
'project': 'retrieve_project',
'supervision': 'retrieve_supervision',
# Accounting
'accounting': 'retrieve_accounting',
# Confirmation
'confirm-submit': 'submit_proposition',
# Confirmation paper
'confirmation-paper': 'retrieve_confirmation',
'extension-request': 'update_confirmation_extension',
# Additional information
'specific-questions': 'retrieve_specific_question',
# Documents
'documents': 'retrieve_documents',
# Others
'doctoral-training': 'retrieve_doctoral_training',
'complementary-training': 'retrieve_complementary_training',
'course-enrollment': 'retrieve_course_enrollment',
'jury-preparation': 'retrieve_jury_preparation',
'jury': 'list_jury_members',
'private-defense': '',
'public-defense': '',
'messages': '',
}
# Association between a write-only tab name (path name) and an action link key
UPDATE_ACTIONS_BY_TAB = {
# Personal data
'coordonnees': 'update_coordinates',
'cotutelle': 'update_cotutelle',
'person': 'update_person',
# Previous experience
'curriculum': 'update_curriculum',
'education': 'update_secondary_studies',
'languages': 'update_languages',
# Project
'training-choice': 'update_training_choice',
'project': 'update_project',
'supervision': 'request_signatures',
# Accounting
'accounting': 'update_accounting',
# Confirmation
'confirm-submit': 'submit_proposition',
# Confirmation paper
'confirmation-paper': 'update_confirmation',
'extension-request': 'update_confirmation_extension',
# Additional information
'specific-questions': 'update_specific_question',
# Documents
'documents': 'update_documents',
# Others
'jury-preparation': 'update_jury_preparation',
'jury': '',
'private-defense': '',
'public-defense': '',
'doctoral-training': '',
'complementary-training': '',
'course-enrollment': '',
'messages': '',
}
UCL_CODE = 'UCL'
BE_ISO_CODE = 'BE'
FIELD_REQUIRED_MESSAGE = _("This field is required.")
FIRST_YEAR_WITH_ECTS_BE = 2004
LINGUISTIC_REGIMES_WITHOUT_TRANSLATION = ['FR', 'NL', 'DE', 'EN', 'IT', 'ES', 'PT']
MINIMUM_YEAR = 1900
MINIMUM_BIRTH_YEAR = 1920
PLUS_5_ISO_CODES = [
'CH', # Switzerland
'IS', # Island
'NO', # Norway
'LI', # Liechtenstein
'MC', # Monaco
]
PROPOSITION_JUST_SUBMITTED = 'proposition_just_submitted'