source: main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/utils/utils.py @ 13187

Last change on this file since 13187 was 13187, checked in by Henrik Bettermann, 9 years ago

Set SYSTEM_MAX_LOAD

Make jamb_reg_number editable.

  • Property svn:keywords set to Id
File size: 7.8 KB
Line 
1## $Id: utils.py 13187 2015-08-04 12:14:40Z henrik $
2##
3## Copyright (C) 2012 Uli Fouquet & Henrik Bettermann
4## This program is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 2 of the License, or
7## (at your option) any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program; if not, write to the Free Software
16## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17##
18"""Customize general helper utilities for Kofa.
19"""
20from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
21
22class CustomKofaUtils(NigeriaKofaUtils):
23    """A collection of methods subject to customization.
24    """
25
26    SYSTEM_MAX_LOAD = {
27        'swap-mem': None,
28        'virt-mem': 80.0,
29        'cpu-load': 100.0,
30        }
31
32    PREFERRED_LANGUAGES_DICT = {
33        }
34
35    APP_CATS_DICT = {
36        'basic': 'Basic',
37        'ndft': 'National Diploma Full-Time Programmes',
38        'ndpt': 'National Diploma Part-Time Programmes',
39        'hndft': 'Higher National Diploma Full-Time Programmes',
40        'hndpt': 'Higher National Diploma Part-Time Programmes',
41        'pgd': 'Postgraduate Diploma Programmes',
42        'rmd': 'Remedial Programmes',
43        'no': 'no application',
44        }
45
46    STUDY_MODES_DICT = {
47        'nd_ft': 'National Diploma Full-Time',
48        'nd_pt': 'National Diploma Part-Time',
49        'hnd_ft': 'Higher National Diploma Full-Time',
50        'hnd_pt': 'Higher National Diploma Part-Time',
51        'pgd_ft': 'Postgraduate Diploma Full-Time',
52        'pgd_pt': 'Postgraduate Diploma Part-Time',
53        'prend': 'Pre-ND',
54        'rmd': 'Remedial',
55        }
56
57    PAYMENT_CATEGORIES = {
58        'schoolfee': 'School Fee',
59        'carryover1': '1 CarryOver',
60        'carryover2': '2 CarryOvers',
61        'carryover3': '3 CarryOvers',
62        'clearance': 'Acceptance',
63        'bed_allocation': 'Bed Allocation',
64        'hostel_maintenance': 'Hostel Maintenance',
65        'application': 'Application',
66        'certificate': 'ND Certificate',
67        'hnd_certificate': 'HND Certificate',
68        'pgd_certificate': 'PGD Certificate',
69        'state_result': 'ND Statement of Result',
70        'hnd_state_result': 'HND Statement of Result',
71        'pgd_state_result': 'PGD Statement of Result',
72        'transcript_local': 'ND Transcript (local)',
73        'hnd_transcript_local': 'HND Transcript (local)',
74        'pgd_transcript_local': 'PGD Transcript (local)',
75        'transcript_foreign': 'ND Transcript (foreign)',
76        'hnd_transcript_foreign': 'HND Transcript (foreign)',
77        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
78        'ver_result': 'Verification of Result',
79        'change_course': 'Change of Course',
80        'change_inst': 'Change of Institute',
81        'jamb_reject': 'JAMB Rejection Form',
82        'cert_of_cert': 'Certification of Certificate',
83        'ref_let': 'Recommendation/Reference Letter',
84        'proc_cert': 'Processing of Certificate by Proxy',
85        'loss_idcard': 'Loss of ID Card (student)',
86        'staff_loss_idcard': 'Loss of ID Card (staff)',
87        'loss_examcard': 'Loss of Exam Card',
88        'loss_result': 'Loss of Result',
89        'loss_receipt': 'Loss of Receipt',
90        'loss_clearance': 'Loss of Clearance',
91        'conv_brochure': 'ND Convocation Brochure',
92        'hnd_conv_brochure': 'HND Convocation Brochure',
93        'pgd_conv_brochure': 'PGD Convocation Brochure',
94        'log_book': 'Log Book',
95        'jamb_regularization': 'Jamb Regularization',
96        'utme_registration': 'UTME Registration',
97        'utme_cbt': 'UTME CBT',
98        'nysc_id_card': 'NYSC ID Card'
99        }
100
101    SELECTABLE_PAYMENT_CATEGORIES = {
102        'schoolfee': 'School Fee',
103        'carryover1': 'One CarryOver',
104        'carryover2': 'Two CarryOvers',
105        'carryover3': 'Three CarryOvers',
106        'hostel_maintenance': 'Hostel Maintenance',
107        'certificate': 'ND Certificate',
108        'hnd_certificate': 'HND Certificate',
109        'pgd_certificate': 'PGD Certificate',
110        'state_result': 'ND Statement of Result',
111        'hnd_state_result': 'HND Statement of Result',
112        'pgd_state_result': 'PGD Statement of Result',
113        'transcript_local': 'ND Transcript (local)',
114        'hnd_transcript_local': 'HND Transcript (local)',
115        'pgd_transcript_local': 'PGD Transcript (local)',
116        'transcript_foreign': 'ND Transcript (foreign)',
117        'hnd_transcript_foreign': 'HND Transcript (foreign)',
118        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
119        'ver_result': 'Verification of Result',
120        'change_course': 'Change of Course',
121        'change_inst': 'Change of Institute',
122        'jamb_reject': 'JAMB Rejection Form',
123        'cert_of_cert': 'Certification of Certificate',
124        'ref_let': 'Recommendation/Reference Letter',
125        'proc_cert': 'Processing of Certificate by Proxy',
126        'loss_idcard': 'Loss of ID Card (student)',
127        'staff_loss_idcard': 'Loss of ID Card (staff)',
128        'loss_examcard': 'Loss of Exam Card',
129        'loss_result': 'Loss of Result',
130        'loss_receipt': 'Loss of Receipt',
131        'loss_clearance': 'Loss of Clearance',
132        'conv_brochure': 'ND Convocation Brochure',
133        'hnd_conv_brochure': 'HND Convocation Brochure',
134        'pgd_conv_brochure': 'PGD Convocation Brochure',
135        'log_book': 'Log Book',
136        'jamb_regularization': 'Jamb Regularization',
137        'utme_registration': 'UTME Registration',
138        'utme_cbt': 'UTME CBT',
139        'nysc_id_card': 'NYSC ID Card'
140        }
141
142    DISABLE_PAYMENT_GROUP_DICT = {
143        'sf_all': 'School Fee - All Students',
144        'sf_non_pg': 'School Fee - Non-PG Students',
145        }
146
147    SPECIAL_HANDLING_DICT = {
148        'regular': 'Regular Hostel',
149        'blocked': 'Blocked Hostel',
150        'pg': 'Postgraduate Hostel',
151        'iot': 'IOT Hostel'
152        }
153
154    SPECIAL_APP_DICT = {
155        'certificate': 'ND Certificate',
156        'hnd_certificate': 'HND Certificate',
157        'pgd_certificate': 'PGD Certificate',
158        'state_result': 'ND Statement of Result',
159        'hnd_state_result': 'HND Statement of Result',
160        'pgd_state_result': 'PGD Statement of Result',
161        'transcript_local': 'ND Transcript (local)',
162        'hnd_transcript_local': 'HND Transcript (local)',
163        'pgd_transcript_local': 'PGD Transcript (local)',
164        'transcript_foreign': 'ND Transcript (foreign)',
165        'hnd_transcript_foreign': 'HND Transcript (foreign)',
166        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
167        'ver_result': 'Verification of Result Payment',
168        'change_course': 'Change of Course Payment',
169        'change_inst': 'Change of Institute Payment',
170        'jamb_reject': 'JAMB Rejection Form Payment',
171        'cert_of_cert': 'Certification of Certificate Payment',
172        'ref_let': 'Recommendation/Reference Letter Payment',
173        'proc_cert': 'Processing of Certificate by Proxy Payment',
174        'loss_idcard': 'Loss of ID Card (student)',
175        'staff_loss_idcard': 'Loss of ID Card (staff)',
176        'loss_examcard': 'Loss of Exam Card Payment',
177        'loss_result': 'Loss of Result Payment',
178        'loss_receipt': 'Loss of Receipt Payment',
179        'loss_clearance': 'Loss of Clearance Payment',
180        'conv_brochure': 'ND Convocation Brochure',
181        'hnd_conv_brochure': 'HND Convocation Brochure',
182        'pgd_conv_brochure': 'PGD Convocation Brochure',
183        'log_book': 'Log Book',
184        'jamb_regularization': 'Jamb Regularization',
185        'utme_registration': 'UTME Registration',
186        'utme_cbt': 'UTME CBT',
187        'nysc_id_card': 'NYSC ID Card'
188        }
Note: See TracBrowser for help on using the repository browser.