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

Last change on this file since 14218 was 14218, checked in by Henrik Bettermann, 8 years ago

Change fees.

Activate acceptance fee payments.

Add IJMB result fee.

  • Property svn:keywords set to Id
File size: 8.2 KB
Line 
1## $Id: utils.py 14218 2016-10-19 11:04:49Z 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        'ndwe': 'National Diploma Weekend Programmes',
40        'hndft': 'Higher National Diploma Full-Time Programmes',
41        'hndpt': 'Higher National Diploma Part-Time Programmes',
42        'hndwe': 'Higher National Diploma Weekend Programmes',
43        'pgd': 'Postgraduate Diploma Programmes',
44        'rmd': 'Remedial Programmes',
45        'no': 'no application',
46        }
47
48    STUDY_MODES_DICT = {
49        'nd_ft': 'National Diploma Full-Time',
50        'nd_pt': 'National Diploma Part-Time',
51        'nd_we': 'National Diploma Weekend',
52        'hnd_ft': 'Higher National Diploma Full-Time',
53        'hnd_pt': 'Higher National Diploma Part-Time',
54        'hnd_we': 'Higher National Diploma Weekend',
55        'pgd_ft': 'Postgraduate Diploma Full-Time',
56        'pgd_pt': 'Postgraduate Diploma Part-Time',
57        'prend': 'Pre-ND',
58        'rmd': 'Remedial',
59        }
60
61    PAYMENT_CATEGORIES = {
62        'schoolfee': 'School Fee',
63        'carryover1': 'One Carry-Over',
64        'carryover2': 'Two Carry-Overs',
65        'carryover3': 'Three Carry-Overs',
66        'clearance': 'Acceptance',
67        'bed_allocation': 'Bed Allocation',
68        'hostel_maintenance': 'Hostel Maintenance',
69        'application': 'Application',
70        'certificate': 'ND Certificate',
71        'hnd_certificate': 'HND Certificate',
72        'pgd_certificate': 'PGD Certificate',
73        'state_result': 'ND Statement of Result',
74        'hnd_state_result': 'HND Statement of Result',
75        'pgd_state_result': 'PGD Statement of Result',
76        'transcript_local': 'ND Transcript (local)',
77        'hnd_transcript_local': 'HND Transcript (local)',
78        'pgd_transcript_local': 'PGD Transcript (local)',
79        'transcript_foreign': 'ND Transcript (foreign)',
80        'hnd_transcript_foreign': 'HND Transcript (foreign)',
81        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
82        'ver_result': 'Verification of Result',
83        'change_course': 'Change of Course',
84        'change_inst': 'Change of Institute',
85        'jamb_reject': 'JAMB Rejection Form',
86        'cert_of_cert': 'Certification of Certificate',
87        'ref_let': 'Recommendation/Reference Letter',
88        'proc_cert': 'Processing of Certificate by Proxy',
89        'loss_idcard': 'Loss of ID Card (student)',
90        'staff_loss_idcard': 'Loss of ID Card (staff)',
91        'loss_examcard': 'Loss of Exam Card',
92        'loss_result': 'Loss of Result',
93        'loss_receipt': 'Loss of Receipt',
94        'loss_clearance': 'Loss of Clearance',
95        'conv_brochure': 'ND Convocation Brochure',
96        'hnd_conv_brochure': 'HND Convocation Brochure',
97        'pgd_conv_brochure': 'PGD Convocation Brochure',
98        'log_book': 'Log Book',
99        'jamb_regularization': 'Jamb Regularization',
100        'utme_registration': 'UTME Registration',
101        'utme_cbt': 'UTME CBT',
102        'nysc_id_card': 'NYSC ID Card',
103        'ijmb_result':'IJMB Result',
104        }
105
106    SELECTABLE_PAYMENT_CATEGORIES = {
107        'schoolfee': 'School Fee',
108        'carryover1': 'One Carry-Over',
109        'carryover2': 'Two Carry-Overs',
110        'carryover3': 'Three Carry-Overs',
111        'hostel_maintenance': 'Hostel Maintenance',
112        'certificate': 'ND Certificate',
113        'hnd_certificate': 'HND Certificate',
114        'pgd_certificate': 'PGD Certificate',
115        'state_result': 'ND Statement of Result',
116        'hnd_state_result': 'HND Statement of Result',
117        'pgd_state_result': 'PGD Statement of Result',
118        'transcript_local': 'ND Transcript (local)',
119        'hnd_transcript_local': 'HND Transcript (local)',
120        'pgd_transcript_local': 'PGD Transcript (local)',
121        'transcript_foreign': 'ND Transcript (foreign)',
122        'hnd_transcript_foreign': 'HND Transcript (foreign)',
123        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
124        'ver_result': 'Verification of Result',
125        'change_course': 'Change of Course',
126        'change_inst': 'Change of Institute',
127        'jamb_reject': 'JAMB Rejection Form',
128        'cert_of_cert': 'Certification of Certificate',
129        'ref_let': 'Recommendation/Reference Letter',
130        'proc_cert': 'Processing of Certificate by Proxy',
131        'loss_idcard': 'Loss of ID Card (student)',
132        'staff_loss_idcard': 'Loss of ID Card (staff)',
133        'loss_examcard': 'Loss of Exam Card',
134        'loss_result': 'Loss of Result',
135        'loss_receipt': 'Loss of Receipt',
136        'loss_clearance': 'Loss of Clearance',
137        'conv_brochure': 'ND Convocation Brochure',
138        'hnd_conv_brochure': 'HND Convocation Brochure',
139        'pgd_conv_brochure': 'PGD Convocation Brochure',
140        'log_book': 'Log Book',
141        'jamb_regularization': 'Jamb Regularization',
142        'utme_registration': 'UTME Registration',
143        'utme_cbt': 'UTME CBT',
144        'nysc_id_card': 'NYSC ID Card',
145        'ijmb_result':'IJMB Result',
146        }
147
148    DISABLE_PAYMENT_GROUP_DICT = {
149        'sf_all': 'School Fee - All Students',
150        'sf_non_pg': 'School Fee - Non-PG Students',
151        }
152
153    SPECIAL_HANDLING_DICT = {
154        'regular': 'Regular Hostel',
155        'blocked': 'Blocked Hostel',
156        'pg': 'Postgraduate Hostel',
157        'iot': 'IOT Hostel'
158        }
159
160    SPECIAL_APP_DICT = {
161        'certificate': 'ND Certificate',
162        'hnd_certificate': 'HND Certificate',
163        'pgd_certificate': 'PGD Certificate',
164        'state_result': 'ND Statement of Result',
165        'hnd_state_result': 'HND Statement of Result',
166        'pgd_state_result': 'PGD Statement of Result',
167        'transcript_local': 'ND Transcript (local)',
168        'hnd_transcript_local': 'HND Transcript (local)',
169        'pgd_transcript_local': 'PGD Transcript (local)',
170        'transcript_foreign': 'ND Transcript (foreign)',
171        'hnd_transcript_foreign': 'HND Transcript (foreign)',
172        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
173        'ver_result': 'Verification of Result Payment',
174        'change_course': 'Change of Course Payment',
175        'change_inst': 'Change of Institute Payment',
176        'jamb_reject': 'JAMB Rejection Form Payment',
177        'cert_of_cert': 'Certification of Certificate Payment',
178        'ref_let': 'Recommendation/Reference Letter Payment',
179        'proc_cert': 'Processing of Certificate by Proxy Payment',
180        'loss_idcard': 'Loss of ID Card (student)',
181        'staff_loss_idcard': 'Loss of ID Card (staff)',
182        'loss_examcard': 'Loss of Exam Card Payment',
183        'loss_result': 'Loss of Result Payment',
184        'loss_receipt': 'Loss of Receipt Payment',
185        'loss_clearance': 'Loss of Clearance Payment',
186        'conv_brochure': 'ND Convocation Brochure',
187        'hnd_conv_brochure': 'HND Convocation Brochure',
188        'pgd_conv_brochure': 'PGD Convocation Brochure',
189        'log_book': 'Log Book',
190        'jamb_regularization': 'Jamb Regularization',
191        'utme_registration': 'UTME Registration',
192        'utme_cbt': 'UTME CBT',
193        'nysc_id_card': 'NYSC ID Card',
194        'ijmb_result':'IJMB Result',
195        }
Note: See TracBrowser for help on using the repository browser.