-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
113 lines (102 loc) · 3.48 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
from shell.constants.departments import DEPARTMENTS
from shell.constants.centres import CENTRES
# Permission statuses
NOT_REQUESTED = 'nrq'
REQUESTED = 'req'
REPORTED = 'rep'
NOT_APPLICABLE = 'nap'
APPROVED_ON_CONDITION = 'apc'
APPROVED = 'app'
PERMISSION_STATUSES = (
(NOT_REQUESTED, 'Not Requested'),
(REQUESTED, 'Requested'),
(REPORTED, 'Reported'),
(NOT_APPLICABLE, 'Not Applicable'),
(APPROVED_ON_CONDITION, 'Approved On Condition'),
(APPROVED, 'Approved'),
)
PERMISSION_STATUS_DICTIONARY = {
NOT_REQUESTED: 'Not Requested',
REQUESTED: 'Requested',
REPORTED: 'Reported',
NOT_APPLICABLE: 'Not Applicable',
APPROVED_ON_CONDITION: 'Approved On Condition',
APPROVED: 'Approved',
}
# Residences
RESIDENCES_EDITED_SLUG = [('azb_bhawan', 'Azad bhawan'),
('ctb_bhawan', 'Cautley bhawan'),
('gnb_bhawan', 'Ganga bhawan'),
('gvb_bhawan', 'Govind bhawan'),
('jlb_bhawan', 'Jawahar bhawan'),
('hlb_bhawan', 'Himalaya bhawan (Boys)'),
('hlg_bhawan', 'Himalaya bhawan (Girls)'),
('him_bhawan', 'Himgiri Apartment'),
('mvb_bhawan', 'Malviya bhawan'),
('rkb_bhawan', 'Radhakrishnan bhawan'),
('rjb_bhawan', 'Rajendra bhawan'),
('rgb_bhawan', 'Rajiv bhawan'),
('rvb_bhawan', 'Ravindra bhawan'),
('snb_bhawan', 'Sarojini bhawan'),
('kgb_bhawan', 'Kasturba bhawan'),
('igb_bhawan', 'Indira bhawan'),
('mar_bhawan', 'Married Hostels (G.P., M.R. Chopra, Azad Wing, D.S. Barrack, Vikas kunj)'),
('khs_bhawan', 'Khosla international house & A.N. Khosla house'),
('vigb_bhawan', 'Vigyan kunj (Boys)'),
('vigg_bhawan', 'Vigyan kunj (Girls)'),
('null_bhawan', 'Non-residing (No Hostel)')
]
# Mess
MESS_EDITED_SLUG = [('azb_mess', 'Azad bhawan mess'),
('ctb_mess', 'Cautley bhawan mess'),
('gvb_mess', 'Govind bhawan mess'),
('jlb_mess', 'Jawahar bhawan mess'),
('rkb_mess', 'Radhakrishnan bhawan mess'),
('rjb_mess', 'Rajendra bhawan mess'),
('rgb_mess', 'Rajiv bhawan mess'),
('rvb_mess', 'Ravindra bhawan mess'),
('snb_mess', 'Sarojini bhawan mess'),
('kgb_mess', 'Kasturba bhawan mess'),
('mvigb_mess', 'Malviya & Indira bhawan mess'),
('vig_mess', 'Vigyan kunj mess'),
('null_mess', 'Non-dining (No Mess)')
]
# Departments
DEPARTMENTS_EDITED_SLUG = [(f'{x[0]}_department', x[1].strip()) for x in DEPARTMENTS]
# Centres
CENTRES_EDITED_SLUG = [(f'{x[0]}_centre', x[1].strip()) for x in CENTRES]
# Clubs
NSS = 'nss'
NCC = 'ncc'
HEC = 'hec'
STUDENTS_TECHNICAL_COUNCIL = 'stc'
CULTURAL_COUNCIL = 'cuc'
CLUBS = (
(NSS, 'National Service Scheme'),
(NCC, 'National Cadet Corps'),
(HEC, 'Himalayan Explorer\'s Club'),
(STUDENTS_TECHNICAL_COUNCIL, 'Students Technical Council'),
(CULTURAL_COUNCIL, 'Cultural Council')
)
# Other authorities
LIBRARY = 'lib'
CCB_OFFICE = 'ccb'
HOSPITAL_BOOKLET_CANCELLATION = 'hbc'
INSTITUTE_COMPUTER_Centre = 'icc'
INSTITUTE_SPORTS_ASSOCIATION = 'iso'
DORA_OFFICE = 'dor'
FINANCE_SECTION = 'fin'
ACADEMIC_SECTION = 'acad'
INSTITUTE_INSTRUMENTATION_CENTRE = 'iic'
OTHER_AUTHORITIES = (
(LIBRARY, 'Central Library'),
(CCB_OFFICE, 'CCB Office'),
(INSTITUTE_COMPUTER_Centre, 'Institute Computer Centre'),
(INSTITUTE_COMPUTER_Centre, 'Institute Computer Centre'),
(HOSPITAL_BOOKLET_CANCELLATION, 'Hospital Booklet Cancellation'),
(INSTITUTE_SPORTS_ASSOCIATION, 'Institute Sports Association & National Sports Organisation'),
(DORA_OFFICE, 'DORA Office'),
(FINANCE_SECTION, 'Finance Section'),
(ACADEMIC_SECTION, 'Academic Section'),
(INSTITUTE_INSTRUMENTATION_CENTRE, 'Institute Instrumentation Centre'),
)