source: main/kofacustom.edocons/trunk/src/kofacustom/edocons/utils/utils.py @ 17394

Last change on this file since 17394 was 17394, checked in by Henrik Bettermann, 19 months ago

Add degrees.

  • Property svn:keywords set to Id
File size: 4.1 KB
RevLine 
[16639]1## $Id: utils.py 17394 2023-04-27 06:41:23Z henrik $
[15614]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"""
20from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
21
22class CustomKofaUtils(NigeriaKofaUtils):
23    """A collection of methods subject to customization.
24    """
[17394]25
26    DEGREES_DICT = {
27        'BA': 'Bachelor of Arts',
28        'BAGR': 'Bachelor of Agriculture',
29        'LLB': 'Bachelor of Laws',
30        'MA': 'Master of Arts',
31        'MBA': 'Master of Business Administration',
32        'MUSM': 'Master of Music',
33        'LLM': 'Master of Laws',
34        'DBA': 'Doctor of Business Administration',
35        'PHD': 'Doctor of Philosophy',
36        'MD': 'Doctor of Medicine',
37        'RN': 'Registered Nursing',
38        'RM': 'Registered Midwifery',
39        }
40
[17207]41    EXAM_GRADES = (
42        ('A1', 'Excellent (A1)'),
43        ('A2', 'Very Good (A2)'),
44        ('A3', 'Good (A3)'),
45        ('B2', 'Very Good (B2)'),
46        ('B3', 'Good (B3)'),
47        ('C4', 'Credit (C4)'),
48        ('C5', 'Credit (C5)'),
49        ('C6', 'Credit (C6)'),
[17209]50        #('A', 'Pass (A)'),
51        #('B', 'Pass (B)'),
52        #('C', 'Pass (C)'),
[17207]53        #('U', 'Pass (U)'),
54        #('D7', 'Pass (D7)'),
55        #('P7', 'Pass (P7)'),
56        #('P8', 'Pass (P8)'),
57        #('E8', 'Pass (E8)'),
58        #('F9', 'Fail (F9)'),
[17209]59        #('Aa', 'A (a)'),
60        #('Bb', 'B (b)'),
61        #('Cc', 'C (c)'),
[17207]62        #('Dd', 'D (d)'),
63        #('Ee', 'E (e)'),
64        #('Ff', 'F (f)'),
65        #('Gg', 'G (g)'),
[17209]66        #('credit-1', 'Credit-1'),
67        #('credit-2', 'Credit-2'),
[17207]68        ('dist', 'Distinction'),
69        #('pass', 'Pass'),
70        #('AR', 'Awaiting Results'),
71        )
[15614]72
[16701]73    PAYMENT_CATEGORIES = {
[16704]74        'schoolfee': 'School Fee (total amount)',
[17382]75        'schoolfee_1': 'School Fee (1st instalment)',
76        'secondinstal': 'School Fee (2nd instalment)',
[16712]77        'clearance': 'Acceptance Fee',
[17365]78        'hostel':'Hostel Fee (1st instalment)',
[17364]79        'hostel_2':'Hostel Fee (2nd instalment)',
[16701]80        #'bed_allocation': 'Bed Allocation Fee',
81        #'hostel_maintenance': 'Hostel Maintenance Fee',
82        #'transfer': 'Transfer Fee',
83        #'gown': 'Gown Hire Fee',
[16712]84        'application': 'Application Fee',
[16701]85        #'app_balance': 'Application Fee Balance',
[17039]86        'transcript': 'Transcript Fee',
[16701]87        #'late_registration': 'Late Course Registration Fee',
88        #'combi': 'Combi Payment',
[17332]89        'resit': 'Resit Fee',
[16701]90        }
91
[16704]92    SELECTABLE_PAYMENT_CATEGORIES = {
[17031]93        'schoolfee': 'School Fee (total amount)',
[17382]94        'schoolfee_1': 'School Fee (1st instalment)',
95        'secondinstal': 'School Fee (2nd instalment)',
[17365]96        'hostel':'Hostel Fee (1st instalment)',
[17364]97        'hostel_2':'Hostel Fee (2nd instalment)',
[17332]98        'resit': 'Resit Fee',
[16704]99        }
[16705]100
101    def selectable_payment_categories(self, student):
102        return self.SELECTABLE_PAYMENT_CATEGORIES
[16710]103
104    PREVIOUS_PAYMENT_CATEGORIES = {
105        'schoolfee': 'School Fee',
[16792]106        'hostel':'Hostel Fee',
[16710]107        }
108
109    REPORTABLE_PAYMENT_CATEGORIES = {
110        'schoolfee': 'School Fee',
111        }
112
113    BALANCE_PAYMENT_CATEGORIES = {
114        'schoolfee': 'School Fee',
[16792]115        'hostel':'Hostel Fee',
[16710]116        }
117
118    COMBI_PAYMENT_CATEGORIES = {
119        }
[17044]120
121    STUDY_MODES_DICT = {
[17096]122        'ug_ft': 'Undergraduate Full Time',
[17050]123        #'no': 'no application',
124        'basic_mid':'Basic Midwifery',
125        'basic_nurs':'Basic Nursing',
126        'post_mid':'Post Midwifery',
127        'post_nurs':'Post Nursing',
[17044]128        }
Note: See TracBrowser for help on using the repository browser.