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

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

Add balance payment category for 'special' aplications.

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