[7569] | 1 | ## $Id: utils.py 13870 2016-05-30 14:32:21Z 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 | """ |
---|
[8823] | 20 | from kofacustom.nigeria.utils.utils import NigeriaKofaUtils |
---|
[7569] | 21 | |
---|
[8823] | 22 | class CustomKofaUtils(NigeriaKofaUtils): |
---|
[7569] | 23 | """A collection of methods subject to customization. |
---|
| 24 | """ |
---|
[7845] | 25 | |
---|
| 26 | PREFERRED_LANGUAGES_DICT = { |
---|
[9755] | 27 | } |
---|
| 28 | |
---|
| 29 | PAYMENT_CATEGORIES = { |
---|
| 30 | 'schoolfee': 'School Fee', |
---|
[13512] | 31 | 'schoolfee_1': 'School Fee Plus (1st instalment)', |
---|
| 32 | 'schoolfee_2': 'School Fee (2nd instalment)', |
---|
[13410] | 33 | 'schoolfee_incl': 'School Fee Plus', |
---|
[9755] | 34 | 'clearance': 'Acceptance Fee', |
---|
[13410] | 35 | 'clearance_incl': 'Acceptance Fee Plus', |
---|
[13424] | 36 | 'hostel_maintenance': 'Hostel Accommodation Fee', |
---|
[9755] | 37 | 'application': 'Application Fee', |
---|
| 38 | 'bed_allocation': 'Bed Allocation Fee', |
---|
| 39 | 'transfer': 'Transfer Fee', |
---|
[10467] | 40 | 'transcript': 'Transcript Fee', |
---|
[13035] | 41 | 'late_registration': 'Late Course Registration Fee', |
---|
[13402] | 42 | 'welfare': 'Student Welfare Assurance Fee', |
---|
[13463] | 43 | 'union': 'Student Union Dues', |
---|
[13402] | 44 | 'lapel': 'Lapel/File Fee', |
---|
[13374] | 45 | 'matric_gown': 'Matriculation Gown Fee', |
---|
| 46 | 'concessional': 'Concessional Fee', |
---|
[9755] | 47 | } |
---|
| 48 | |
---|
| 49 | SELECTABLE_PAYMENT_CATEGORIES = { |
---|
[13435] | 50 | 'schoolfee': 'School Fee without additional fees', |
---|
[13512] | 51 | 'schoolfee_1': 'School Fee (1st instalment) + Student Union Dues + Welfare Assurance Fee', |
---|
| 52 | 'schoolfee_2': 'School Fee (2nd instalment)', |
---|
[13463] | 53 | 'schoolfee_incl': 'School Fee + Student Union Dues + Welfare Assurance Fee', |
---|
[13435] | 54 | 'clearance': 'Acceptance Fee without additional fees', |
---|
[13410] | 55 | 'clearance_incl': 'Acceptance Fee + Matric Gown Fee + Lapel/File Fee', |
---|
[13454] | 56 | 'hostel_maintenance': 'Hostel Accommodation Fee', |
---|
[9755] | 57 | 'application': 'Application Fee', |
---|
[11621] | 58 | #'bed_allocation': 'Bed Allocation Fee', |
---|
| 59 | #'transfer': 'Transfer Fee', |
---|
[10468] | 60 | 'transcript': 'Transcript Fee', |
---|
[13035] | 61 | 'late_registration': 'Late Course Registration Fee', |
---|
[13435] | 62 | 'welfare': 'Student Welfare Assurance Fee', |
---|
[13463] | 63 | 'union': 'Student Union Dues', |
---|
[13435] | 64 | 'lapel': 'Lapel/File Fee', |
---|
| 65 | 'matric_gown': 'Matriculation Gown Fee', |
---|
[13374] | 66 | 'concessional': 'Concessional Fee', |
---|
[9755] | 67 | } |
---|
| 68 | |
---|
[13451] | 69 | REPORTABLE_PAYMENT_CATEGORIES = { |
---|
| 70 | 'schoolfee': 'School Fee', |
---|
[13452] | 71 | 'schoolfee_incl': 'School Fee Plus', |
---|
[13635] | 72 | 'schoolfee_1': 'School Fee 1 Plus', |
---|
| 73 | 'schoolfee_2': 'School Fee 2', |
---|
[13451] | 74 | 'clearance': 'Acceptance Fee', |
---|
[13452] | 75 | 'clearance_incl': 'Acceptance Fee Plus', |
---|
[13451] | 76 | 'hostel_maintenance': 'Hostel Maintenance Fee', |
---|
| 77 | } |
---|
| 78 | |
---|
[13638] | 79 | BALANCE_PAYMENT_CATEGORIES = { |
---|
| 80 | 'schoolfee': 'School Fee', |
---|
| 81 | 'clearance': 'Acceptance Fee', |
---|
| 82 | 'hostel_maintenance': 'Hostel Maintenance Fee', |
---|
[13750] | 83 | 'late_registration': 'Late Course Registration Fee', |
---|
| 84 | 'welfare': 'Student Welfare Assurance Fee', |
---|
| 85 | 'union': 'Student Union Dues', |
---|
| 86 | 'lapel': 'Lapel/File Fee', |
---|
| 87 | 'matric_gown': 'Matriculation Gown Fee', |
---|
[13638] | 88 | } |
---|
| 89 | |
---|
[10304] | 90 | APP_CATS_DICT = { |
---|
| 91 | 'basic': 'PUTME, PUDE, PCE, PRENCE', |
---|
| 92 | 'no': 'No Application', |
---|
| 93 | 'pg_ft': 'Postgraduate Full-Time', |
---|
| 94 | 'pg_pt': 'Postgraduate Part-Time', |
---|
| 95 | 'cest': 'Part-Time, Diploma, Certificate', |
---|
| 96 | 'found': 'Foundation', |
---|
[10893] | 97 | 'ptee': 'Part-Time Entrance Examination', |
---|
[13568] | 98 | 'ioe_dp': 'Institute of Education Diploma', |
---|
[10304] | 99 | } |
---|
| 100 | |
---|
[11591] | 101 | STUDY_MODES_DICT = { |
---|
| 102 | 'ug_ft': 'Undergraduate Full Time', |
---|
| 103 | 'ug_pt': 'Undergraduate Part Time', |
---|
[11593] | 104 | 'de_ft': 'Direct Entry Full Time', |
---|
| 105 | 'de_pt': 'Direct Entry Part Time', |
---|
[11591] | 106 | 'dp_pt': 'Diploma Part Time', |
---|
| 107 | 'dp_ft': 'Diploma Full Time', |
---|
[13524] | 108 | 'special_pg_ft': 'Postgraduate Full Time', |
---|
| 109 | 'special_pg_pt': 'Postgraduate Part Time', |
---|
[11591] | 110 | 'found': 'Foundation', |
---|
[13498] | 111 | 'transfer': 'Transfer', |
---|
[13749] | 112 | 'mug_ft': 'Undergraduate Full Time Merit List', |
---|
| 113 | 'mde_ft': 'Direct Entry Full Time Merit List', |
---|
[11591] | 114 | } |
---|
| 115 | |
---|
[13127] | 116 | VERDICTS_DICT = { |
---|
| 117 | '0': 'not yet', |
---|
| 118 | 'A': 'Successful student', |
---|
| 119 | 'B': 'Student with carryover courses', |
---|
| 120 | 'C': 'Student on probation', |
---|
| 121 | #'D': 'Withdrawn from the faculty', |
---|
| 122 | #'E': 'Student who were previously on probation', |
---|
| 123 | #'F': 'Medical case', |
---|
| 124 | #'G': 'Absent from examination', |
---|
| 125 | #'H': 'Withheld results', |
---|
| 126 | #'I': 'Expelled/rusticated/suspended student', |
---|
| 127 | #'J': 'Temporary withdrawn from the university', |
---|
| 128 | #'K': 'Unregistered student', |
---|
| 129 | #'L': 'Referred student', |
---|
| 130 | #'M': 'Reinstatement', |
---|
| 131 | #'N': 'Student on transfer', |
---|
| 132 | #'O': 'NCE-III repeater', |
---|
| 133 | #'Y': 'No previous verdict', |
---|
| 134 | #'X': 'New 300 level student', |
---|
| 135 | 'Z': 'Successful student (provisional)', |
---|
| 136 | #'A1': 'First Class', |
---|
| 137 | #'A2': 'Second Class Upper', |
---|
| 138 | #'A3': 'Second Class Lower', |
---|
| 139 | #'A4': 'Third Class', |
---|
| 140 | #'A5': 'Pass', |
---|
| 141 | #'A6': 'Distinction', |
---|
| 142 | #'A7': 'Credit', |
---|
| 143 | #'A8': 'Merit', |
---|
| 144 | 'NEOR': 'No evidence of registration', |
---|
| 145 | 'NEOV': 'No evidence of verification', |
---|
| 146 | 'FRNS': 'Faculty requirements not satisfied', |
---|
| 147 | } |
---|
[13454] | 148 | |
---|
| 149 | DISABLE_PAYMENT_GROUP_DICT = { |
---|
| 150 | 'sf_all': 'School Fee - All Students', |
---|
| 151 | 'maint_all': 'Accommodation Fee - All Students', |
---|
[13794] | 152 | 'cl_regular': 'Acceptance Fee - Regular Students', |
---|
[13454] | 153 | } |
---|
[13870] | 154 | |
---|
| 155 | MODE_GROUPS = { |
---|
| 156 | 'All': ('all',), |
---|
| 157 | 'Undergraduate Full-Time': ('ug_ft', 'mde_ft', 'mug_ft', 'de_ft'), |
---|
| 158 | 'Undergraduate Part-Time': ('ug_pt', 'de_pt'), |
---|
| 159 | 'Postgraduate': ('pg_ft','special_pg_ft', 'special_pg_pt'), |
---|
| 160 | 'Foundation Programme': ('found',), |
---|
| 161 | 'Institute of Education': ('dp_ft'), |
---|
| 162 | } |
---|