[10765] | 1 | ## $Id: utils.py 15067 2018-06-28 11:18:22Z 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 | """ |
---|
| 20 | from kofacustom.nigeria.utils.utils import NigeriaKofaUtils |
---|
| 21 | |
---|
| 22 | class CustomKofaUtils(NigeriaKofaUtils): |
---|
| 23 | """A collection of methods subject to customization. |
---|
| 24 | """ |
---|
| 25 | |
---|
[14720] | 26 | APP_CATS_DICT = { |
---|
| 27 | 'basic': 'Basic', |
---|
| 28 | 'ndft': 'National Diploma Full-Time Programmes', |
---|
| 29 | 'ndpt': 'National Diploma Part-Time Programmes', |
---|
| 30 | 'ndwe': 'National Diploma Weekend Programmes', |
---|
| 31 | 'hndft': 'Higher National Diploma Full-Time Programmes', |
---|
| 32 | 'hndpt': 'Higher National Diploma Part-Time Programmes', |
---|
| 33 | 'hndwe': 'Higher National Diploma Weekend Programmes', |
---|
| 34 | 'pgd': 'Postgraduate Diploma Programmes', |
---|
| 35 | 'rmd': 'Remedial Programmes', |
---|
| 36 | 'no': 'no application', |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | STUDY_MODES_DICT = { |
---|
[14921] | 40 | 'transfer': 'Transfer', |
---|
[14720] | 41 | 'ug_ft': 'Undergraduate Full Time', |
---|
| 42 | 'ug_pt': 'Undergraduate Part Time', |
---|
| 43 | 'nd_ft': 'National Diploma Full-Time', |
---|
| 44 | 'nd_pt': 'National Diploma Part-Time', |
---|
| 45 | 'nd_we': 'National Diploma Weekend', |
---|
| 46 | 'hnd_ft': 'Higher National Diploma Full-Time', |
---|
| 47 | 'hnd_pt': 'Higher National Diploma Part-Time', |
---|
| 48 | 'hnd_we': 'Higher National Diploma Weekend', |
---|
| 49 | 'pgd_ft': 'Postgraduate Diploma Full-Time', |
---|
| 50 | 'pgd_pt': 'Postgraduate Diploma Part-Time', |
---|
| 51 | 'prend': 'Pre-ND', |
---|
| 52 | 'rmd': 'Remedial', |
---|
[14859] | 53 | } |
---|
| 54 | |
---|
| 55 | PAYMENT_CATEGORIES = { |
---|
| 56 | 'clearance': 'Acceptance', |
---|
| 57 | 'schoolfee': 'School Fee', |
---|
[14937] | 58 | 'dep_sug':'NADESU/SA/SUG', # is not a special paynent |
---|
[14864] | 59 | 'carryover1': '1, 2 or 3 Carry-Over Courses', |
---|
| 60 | 'carryover4': '4 Carry-Over Courses', |
---|
| 61 | 'carryover5': '5 Carry-Over Courses', |
---|
| 62 | 'carryover6': '6 Carry-Over Courses', |
---|
| 63 | 'carryover7': '7 Carry-Over Courses', |
---|
| 64 | 'carryover8': '8 Carry-Over Courses', |
---|
| 65 | 'carryover9': '9 Carry-Over Courses', |
---|
| 66 | 'carryover10': '10 Carry-Over Courses', |
---|
[14868] | 67 | 'carryover11': '11 Carry-Over Courses', |
---|
| 68 | 'carryover12': '12 Carry-Over Courses', |
---|
[14869] | 69 | 'balance': 'Balance Payment', |
---|
[14859] | 70 | 'bed_allocation': 'Bed Allocation', |
---|
| 71 | 'hostel_maintenance': 'Hostel Maintenance', |
---|
| 72 | 'application': 'Application', |
---|
| 73 | 'certificate': 'ND Certificate', |
---|
| 74 | 'hnd_certificate': 'HND Certificate', |
---|
| 75 | 'pgd_certificate': 'PGD Certificate', |
---|
| 76 | 'state_result': 'ND Statement of Result', |
---|
| 77 | 'hnd_state_result': 'HND Statement of Result', |
---|
| 78 | 'pgd_state_result': 'PGD Statement of Result', |
---|
| 79 | 'transcript_local': 'ND Transcript (local)', |
---|
| 80 | 'hnd_transcript_local': 'HND Transcript (local)', |
---|
| 81 | 'pgd_transcript_local': 'PGD Transcript (local)', |
---|
| 82 | 'transcript_foreign': 'ND Transcript (foreign)', |
---|
| 83 | 'hnd_transcript_foreign': 'HND Transcript (foreign)', |
---|
| 84 | 'pgd_transcript_foreign': 'PGD Transcript (foreign)', |
---|
| 85 | 'ver_result': 'Verification of Result', |
---|
| 86 | 'change_course': 'Change of Course', |
---|
| 87 | 'change_inst': 'Change of Institute', |
---|
| 88 | 'jamb_reject': 'JAMB Rejection Form', |
---|
| 89 | 'cert_of_cert': 'Certification of Certificate', |
---|
| 90 | 'ref_let': 'Recommendation/Reference Letter', |
---|
| 91 | 'proc_cert': 'Processing of Certificate by Proxy', |
---|
| 92 | 'loss_idcard': 'Loss of ID Card (student)', |
---|
| 93 | 'staff_loss_idcard': 'Loss of ID Card (staff)', |
---|
| 94 | 'loss_examcard': 'Loss of Exam Card', |
---|
| 95 | 'loss_result': 'Loss of Result', |
---|
| 96 | 'loss_receipt': 'Loss of Receipt', |
---|
| 97 | 'loss_clearance': 'Loss of Clearance', |
---|
| 98 | 'conv_brochure': 'ND Convocation Brochure', |
---|
| 99 | 'hnd_conv_brochure': 'HND Convocation Brochure', |
---|
| 100 | 'pgd_conv_brochure': 'PGD Convocation Brochure', |
---|
| 101 | 'log_book': 'Log Book', |
---|
| 102 | 'jamb_regularization': 'Jamb Regularization', |
---|
| 103 | 'utme_registration': 'UTME Registration', |
---|
| 104 | 'utme_cbt': 'UTME CBT', |
---|
| 105 | 'nysc_id_card': 'NYSC ID Card', |
---|
| 106 | 'ijmb_result':'IJMB Result', |
---|
[14942] | 107 | 'gown': 'Gown Hire Fee', |
---|
[15021] | 108 | 'sports': 'Sports Clearance Levy', |
---|
| 109 | 'siwes': 'SIWES Fee', |
---|
[15022] | 110 | 'eed_1': 'EED 1 Fee', |
---|
| 111 | 'eed_2': 'EED 2 Fee', |
---|
[15067] | 112 | 'olevel_results_1': 'O Level Results Verification 1', |
---|
| 113 | 'olevel_results_2': 'O Level Results Verification 2', |
---|
[14859] | 114 | } |
---|
| 115 | |
---|
| 116 | SELECTABLE_PAYMENT_CATEGORIES = { |
---|
| 117 | 'clearance': 'Acceptance', |
---|
| 118 | 'schoolfee': 'School Fee', |
---|
[14937] | 119 | 'dep_sug':'NADESU/SA/SUG', |
---|
[14942] | 120 | 'gown': 'Gown Hire Fee', |
---|
[14863] | 121 | #'carryover1': 'One Carry-Over', |
---|
| 122 | #'carryover2': 'Two Carry-Overs', |
---|
| 123 | #'carryover3': 'Three Carry-Overs', |
---|
| 124 | #'carryover4': 'Four Carry-Overs', |
---|
| 125 | #'hostel_maintenance': 'Hostel Maintenance', |
---|
| 126 | #'certificate': 'ND Certificate', |
---|
| 127 | #'hnd_certificate': 'HND Certificate', |
---|
| 128 | #'pgd_certificate': 'PGD Certificate', |
---|
| 129 | #'state_result': 'ND Statement of Result', |
---|
| 130 | #'hnd_state_result': 'HND Statement of Result', |
---|
| 131 | #'pgd_state_result': 'PGD Statement of Result', |
---|
| 132 | #'transcript_local': 'ND Transcript (local)', |
---|
| 133 | #'hnd_transcript_local': 'HND Transcript (local)', |
---|
| 134 | #'pgd_transcript_local': 'PGD Transcript (local)', |
---|
| 135 | #'transcript_foreign': 'ND Transcript (foreign)', |
---|
| 136 | #'hnd_transcript_foreign': 'HND Transcript (foreign)', |
---|
| 137 | #'pgd_transcript_foreign': 'PGD Transcript (foreign)', |
---|
| 138 | #'ver_result': 'Verification of Result', |
---|
[14903] | 139 | 'change_course': 'Change of Course', |
---|
[14863] | 140 | #'change_inst': 'Change of Institute', |
---|
| 141 | #'jamb_reject': 'JAMB Rejection Form', |
---|
| 142 | #'cert_of_cert': 'Certification of Certificate', |
---|
| 143 | #'ref_let': 'Recommendation/Reference Letter', |
---|
| 144 | #'proc_cert': 'Processing of Certificate by Proxy', |
---|
| 145 | #'loss_idcard': 'Loss of ID Card (student)', |
---|
| 146 | #'staff_loss_idcard': 'Loss of ID Card (staff)', |
---|
| 147 | #'loss_examcard': 'Loss of Exam Card', |
---|
| 148 | #'loss_result': 'Loss of Result', |
---|
| 149 | #'loss_receipt': 'Loss of Receipt', |
---|
| 150 | #'loss_clearance': 'Loss of Clearance', |
---|
| 151 | #'conv_brochure': 'ND Convocation Brochure', |
---|
| 152 | #'hnd_conv_brochure': 'HND Convocation Brochure', |
---|
| 153 | #'pgd_conv_brochure': 'PGD Convocation Brochure', |
---|
| 154 | #'log_book': 'Log Book', |
---|
| 155 | #'jamb_regularization': 'Jamb Regularization', |
---|
| 156 | #'utme_registration': 'UTME Registration', |
---|
| 157 | #'utme_cbt': 'UTME CBT', |
---|
| 158 | #'nysc_id_card': 'NYSC ID Card', |
---|
| 159 | #'ijmb_result':'IJMB Result', |
---|
[15021] | 160 | 'sports': 'Sports Clearance Levy', |
---|
| 161 | 'siwes': 'SIWES Fee', |
---|
[15024] | 162 | 'eed_1': 'EED 1 Fee', |
---|
| 163 | 'eed_2': 'EED 2 Fee', |
---|
[15067] | 164 | 'olevel_results_1': 'O Level Results Verification 1', |
---|
| 165 | 'olevel_results_2': 'O Level Results Verification 2', |
---|
[14859] | 166 | } |
---|
| 167 | |
---|
| 168 | SPECIAL_APP_DICT = { |
---|
| 169 | 'certificate': 'ND Certificate', |
---|
| 170 | 'hnd_certificate': 'HND Certificate', |
---|
| 171 | 'pgd_certificate': 'PGD Certificate', |
---|
| 172 | 'state_result': 'ND Statement of Result', |
---|
| 173 | 'hnd_state_result': 'HND Statement of Result', |
---|
| 174 | 'pgd_state_result': 'PGD Statement of Result', |
---|
| 175 | 'transcript_local': 'ND Transcript (local)', |
---|
| 176 | 'hnd_transcript_local': 'HND Transcript (local)', |
---|
| 177 | 'pgd_transcript_local': 'PGD Transcript (local)', |
---|
| 178 | 'transcript_foreign': 'ND Transcript (foreign)', |
---|
| 179 | 'hnd_transcript_foreign': 'HND Transcript (foreign)', |
---|
| 180 | 'pgd_transcript_foreign': 'PGD Transcript (foreign)', |
---|
[14865] | 181 | 'ver_result': 'Verification of Result', |
---|
| 182 | 'change_course': 'Change of Course', |
---|
| 183 | 'change_inst': 'Change of Institute', |
---|
| 184 | 'jamb_reject': 'JAMB Rejection Form', |
---|
| 185 | 'cert_of_cert': 'Certification of Certificate', |
---|
| 186 | 'ref_let': 'Recommendation/Reference Letter', |
---|
| 187 | 'proc_cert': 'Processing of Certificate by Proxy', |
---|
[14859] | 188 | 'loss_idcard': 'Loss of ID Card (student)', |
---|
| 189 | 'staff_loss_idcard': 'Loss of ID Card (staff)', |
---|
[14865] | 190 | 'loss_examcard': 'Loss of Exam Card', |
---|
| 191 | 'loss_result': 'Loss of Result', |
---|
| 192 | 'loss_receipt': 'Loss of Receipt', |
---|
| 193 | 'loss_clearance': 'Loss of Clearance', |
---|
[14859] | 194 | 'conv_brochure': 'ND Convocation Brochure', |
---|
| 195 | 'hnd_conv_brochure': 'HND Convocation Brochure', |
---|
| 196 | 'pgd_conv_brochure': 'PGD Convocation Brochure', |
---|
| 197 | 'log_book': 'Log Book', |
---|
| 198 | 'jamb_regularization': 'Jamb Regularization', |
---|
| 199 | 'utme_registration': 'UTME Registration', |
---|
| 200 | 'utme_cbt': 'UTME CBT', |
---|
| 201 | 'nysc_id_card': 'NYSC ID Card', |
---|
| 202 | 'ijmb_result':'IJMB Result', |
---|
[14865] | 203 | 'carryover1': '01, 02 or 03 Carry-Over Courses', |
---|
| 204 | 'carryover4': '04 Carry-Over Courses', |
---|
| 205 | 'carryover5': '05 Carry-Over Courses', |
---|
| 206 | 'carryover6': '06 Carry-Over Courses', |
---|
| 207 | 'carryover7': '07 Carry-Over Courses', |
---|
| 208 | 'carryover8': '08 Carry-Over Courses', |
---|
| 209 | 'carryover9': '09 Carry-Over Courses', |
---|
[14864] | 210 | 'carryover10': '10 Carry-Over Courses', |
---|
[14868] | 211 | 'carryover11': '11 Carry-Over Courses', |
---|
| 212 | 'carryover12': '12 Carry-Over Courses', |
---|
[14869] | 213 | 'balance': 'Balance Payment', |
---|
[14720] | 214 | } |
---|