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
RevLine 
[7569]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##
[7822]18"""Customize general helper utilities for Kofa.
[7569]19"""
[8834]20from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
[7569]21
[8834]22class CustomKofaUtils(NigeriaKofaUtils):
[7569]23    """A collection of methods subject to customization.
24    """
[7845]25
[13187]26    SYSTEM_MAX_LOAD = {
27        'swap-mem': None,
28        'virt-mem': 80.0,
29        'cpu-load': 100.0,
30        }
31
[7845]32    PREFERRED_LANGUAGES_DICT = {
33        }
[9361]34
35    APP_CATS_DICT = {
36        'basic': 'Basic',
[10133]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',
[10121]41        'pgd': 'Postgraduate Diploma Programmes',
[10133]42        'rmd': 'Remedial Programmes',
[10844]43        'no': 'no application',
[9361]44        }
45
46    STUDY_MODES_DICT = {
[10133]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',
[10778]53        'prend': 'Pre-ND',
[10133]54        'rmd': 'Remedial',
[9724]55        }
56
57    PAYMENT_CATEGORIES = {
58        'schoolfee': 'School Fee',
[9737]59        'carryover1': '1 CarryOver',
60        'carryover2': '2 CarryOvers',
61        'carryover3': '3 CarryOvers',
[11922]62        'clearance': 'Acceptance',
63        'bed_allocation': 'Bed Allocation',
64        'hostel_maintenance': 'Hostel Maintenance',
65        'application': 'Application',
[11629]66        'certificate': 'ND Certificate',
67        'hnd_certificate': 'HND Certificate',
[11683]68        'pgd_certificate': 'PGD Certificate',
[11629]69        'state_result': 'ND Statement of Result',
70        'hnd_state_result': 'HND Statement of Result',
[11683]71        'pgd_state_result': 'PGD Statement of Result',
[11629]72        'transcript_local': 'ND Transcript (local)',
73        'hnd_transcript_local': 'HND Transcript (local)',
[11758]74        'pgd_transcript_local': 'PGD Transcript (local)',
[11629]75        'transcript_foreign': 'ND Transcript (foreign)',
76        'hnd_transcript_foreign': 'HND Transcript (foreign)',
[11758]77        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
[10734]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',
[11629]85        'loss_idcard': 'Loss of ID Card (student)',
86        'staff_loss_idcard': 'Loss of ID Card (staff)',
[10734]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',
[11629]91        'conv_brochure': 'ND Convocation Brochure',
92        'hnd_conv_brochure': 'HND Convocation Brochure',
[11683]93        'pgd_conv_brochure': 'PGD Convocation Brochure',
[11922]94        'log_book': 'Log Book',
[11758]95        'jamb_regularization': 'Jamb Regularization',
[11922]96        'utme_registration': 'UTME Registration',
97        'utme_cbt': 'UTME CBT',
98        'nysc_id_card': 'NYSC ID Card'
[9737]99        }
100
101    SELECTABLE_PAYMENT_CATEGORIES = {
102        'schoolfee': 'School Fee',
103        'carryover1': 'One CarryOver',
104        'carryover2': 'Two CarryOvers',
105        'carryover3': 'Three CarryOvers',
[11922]106        'hostel_maintenance': 'Hostel Maintenance',
[11629]107        'certificate': 'ND Certificate',
108        'hnd_certificate': 'HND Certificate',
[11684]109        'pgd_certificate': 'PGD Certificate',
[11629]110        'state_result': 'ND Statement of Result',
111        'hnd_state_result': 'HND Statement of Result',
[11684]112        'pgd_state_result': 'PGD Statement of Result',
[11629]113        'transcript_local': 'ND Transcript (local)',
114        'hnd_transcript_local': 'HND Transcript (local)',
[11758]115        'pgd_transcript_local': 'PGD Transcript (local)',
[11629]116        'transcript_foreign': 'ND Transcript (foreign)',
117        'hnd_transcript_foreign': 'HND Transcript (foreign)',
[11758]118        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
[10734]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',
[11629]126        'loss_idcard': 'Loss of ID Card (student)',
127        'staff_loss_idcard': 'Loss of ID Card (staff)',
[10734]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',
[11629]132        'conv_brochure': 'ND Convocation Brochure',
133        'hnd_conv_brochure': 'HND Convocation Brochure',
[11684]134        'pgd_conv_brochure': 'PGD Convocation Brochure',
[11922]135        'log_book': 'Log Book',
[11758]136        'jamb_regularization': 'Jamb Regularization',
[11922]137        'utme_registration': 'UTME Registration',
138        'utme_cbt': 'UTME CBT',
139        'nysc_id_card': 'NYSC ID Card'
[10820]140        }
141
[11453]142    DISABLE_PAYMENT_GROUP_DICT = {
143        'sf_all': 'School Fee - All Students',
144        'sf_non_pg': 'School Fee - Non-PG Students',
145        }
146
[10820]147    SPECIAL_HANDLING_DICT = {
148        'regular': 'Regular Hostel',
149        'blocked': 'Blocked Hostel',
150        'pg': 'Postgraduate Hostel',
[11965]151        'iot': 'IOT Hostel'
[10844]152        }
153
154    SPECIAL_APP_DICT = {
[11663]155        'certificate': 'ND Certificate',
156        'hnd_certificate': 'HND Certificate',
[11685]157        'pgd_certificate': 'PGD Certificate',
[11663]158        'state_result': 'ND Statement of Result',
159        'hnd_state_result': 'HND Statement of Result',
[11685]160        'pgd_state_result': 'PGD Statement of Result',
[11663]161        'transcript_local': 'ND Transcript (local)',
162        'hnd_transcript_local': 'HND Transcript (local)',
[11758]163        'pgd_transcript_local': 'PGD Transcript (local)',
[11663]164        'transcript_foreign': 'ND Transcript (foreign)',
165        'hnd_transcript_foreign': 'HND Transcript (foreign)',
[11758]166        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
[10844]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',
[11663]174        'loss_idcard': 'Loss of ID Card (student)',
175        'staff_loss_idcard': 'Loss of ID Card (staff)',
[10844]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',
[11663]180        'conv_brochure': 'ND Convocation Brochure',
181        'hnd_conv_brochure': 'HND Convocation Brochure',
[11685]182        'pgd_conv_brochure': 'PGD Convocation Brochure',
[11922]183        'log_book': 'Log Book',
[11758]184        'jamb_regularization': 'Jamb Regularization',
[11922]185        'utme_registration': 'UTME Registration',
186        'utme_cbt': 'UTME CBT',
187        'nysc_id_card': 'NYSC ID Card'
[9361]188        }
Note: See TracBrowser for help on using the repository browser.