[7569] | 1 | ## $Id: utils.py 13342 2015-10-21 15:35:23Z 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 | """ |
---|
[13342] | 20 | from waeup.kofa.interfaces import ADMITTED, RETURNING |
---|
[8823] | 21 | from kofacustom.nigeria.utils.utils import NigeriaKofaUtils |
---|
[7569] | 22 | |
---|
[8823] | 23 | class CustomKofaUtils(NigeriaKofaUtils): |
---|
[7569] | 24 | """A collection of methods subject to customization. |
---|
| 25 | """ |
---|
[7845] | 26 | |
---|
| 27 | PREFERRED_LANGUAGES_DICT = { |
---|
[9755] | 28 | } |
---|
| 29 | |
---|
| 30 | PAYMENT_CATEGORIES = { |
---|
| 31 | 'schoolfee': 'School Fee', |
---|
| 32 | 'schoolfee_1': 'School Fee 1st instalment', |
---|
| 33 | 'schoolfee_2': 'School Fee 2nd instalment', |
---|
| 34 | 'clearance': 'Acceptance Fee', |
---|
| 35 | 'hostel_maintenance': 'Hostel Maintenance Fee', |
---|
| 36 | 'application': 'Application Fee', |
---|
| 37 | 'gown': 'Gown Hire Fee', |
---|
| 38 | 'bed_allocation': 'Bed Allocation Fee', |
---|
| 39 | 'transfer': 'Transfer Fee', |
---|
[10467] | 40 | 'transcript': 'Transcript Fee', |
---|
[13035] | 41 | 'late_registration': 'Late Course Registration Fee', |
---|
[9755] | 42 | } |
---|
| 43 | |
---|
| 44 | SELECTABLE_PAYMENT_CATEGORIES = { |
---|
[9905] | 45 | 'schoolfee': 'School Fee', |
---|
| 46 | #'schoolfee_1': 'School Fee 1st instalment', |
---|
| 47 | #'schoolfee_2': 'School Fee 2nd instalment', |
---|
[9755] | 48 | 'clearance': 'Acceptance Fee', |
---|
[11621] | 49 | #'hostel_maintenance': 'Hostel Maintenance Fee', |
---|
[9755] | 50 | 'application': 'Application Fee', |
---|
[11621] | 51 | #'gown': 'Gown Hire Fee', |
---|
| 52 | #'bed_allocation': 'Bed Allocation Fee', |
---|
| 53 | #'transfer': 'Transfer Fee', |
---|
[10468] | 54 | 'transcript': 'Transcript Fee', |
---|
[13035] | 55 | 'late_registration': 'Late Course Registration Fee', |
---|
[9755] | 56 | } |
---|
| 57 | |
---|
[10304] | 58 | APP_CATS_DICT = { |
---|
| 59 | 'basic': 'PUTME, PUDE, PCE, PRENCE', |
---|
| 60 | 'no': 'No Application', |
---|
| 61 | 'pg_ft': 'Postgraduate Full-Time', |
---|
| 62 | 'pg_pt': 'Postgraduate Part-Time', |
---|
| 63 | 'cest': 'Part-Time, Diploma, Certificate', |
---|
| 64 | 'found': 'Foundation', |
---|
[10893] | 65 | 'ptee': 'Part-Time Entrance Examination', |
---|
[10304] | 66 | } |
---|
| 67 | |
---|
[11591] | 68 | STUDY_MODES_DICT = { |
---|
| 69 | 'ug_ft': 'Undergraduate Full Time', |
---|
| 70 | 'ug_pt': 'Undergraduate Part Time', |
---|
[11593] | 71 | 'de_ft': 'Direct Entry Full Time', |
---|
| 72 | 'de_pt': 'Direct Entry Part Time', |
---|
[11591] | 73 | 'dp_pt': 'Diploma Part Time', |
---|
| 74 | 'dp_ft': 'Diploma Full Time', |
---|
| 75 | 'pg_ft': 'Postgraduate Full Time', |
---|
| 76 | 'pg_pt': 'Postgraduate Part Time', |
---|
| 77 | 'found': 'Foundation', |
---|
| 78 | } |
---|
| 79 | |
---|
[13127] | 80 | VERDICTS_DICT = { |
---|
| 81 | '0': 'not yet', |
---|
| 82 | 'A': 'Successful student', |
---|
| 83 | 'B': 'Student with carryover courses', |
---|
| 84 | 'C': 'Student on probation', |
---|
| 85 | #'D': 'Withdrawn from the faculty', |
---|
| 86 | #'E': 'Student who were previously on probation', |
---|
| 87 | #'F': 'Medical case', |
---|
| 88 | #'G': 'Absent from examination', |
---|
| 89 | #'H': 'Withheld results', |
---|
| 90 | #'I': 'Expelled/rusticated/suspended student', |
---|
| 91 | #'J': 'Temporary withdrawn from the university', |
---|
| 92 | #'K': 'Unregistered student', |
---|
| 93 | #'L': 'Referred student', |
---|
| 94 | #'M': 'Reinstatement', |
---|
| 95 | #'N': 'Student on transfer', |
---|
| 96 | #'O': 'NCE-III repeater', |
---|
| 97 | #'Y': 'No previous verdict', |
---|
| 98 | #'X': 'New 300 level student', |
---|
| 99 | 'Z': 'Successful student (provisional)', |
---|
| 100 | #'A1': 'First Class', |
---|
| 101 | #'A2': 'Second Class Upper', |
---|
| 102 | #'A3': 'Second Class Lower', |
---|
| 103 | #'A4': 'Third Class', |
---|
| 104 | #'A5': 'Pass', |
---|
| 105 | #'A6': 'Distinction', |
---|
| 106 | #'A7': 'Credit', |
---|
| 107 | #'A8': 'Merit', |
---|
| 108 | 'NEOR': 'No evidence of registration', |
---|
| 109 | 'NEOV': 'No evidence of verification', |
---|
| 110 | 'FRNS': 'Faculty requirements not satisfied', |
---|
| 111 | } |
---|
[13342] | 112 | |
---|
| 113 | PORTRAIT_CHANGE_STATES = (ADMITTED, RETURNING) |
---|