source: main/waeup.fceokene/trunk/src/waeup/fceokene/utils/utils.py @ 14590

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

Customize STUDY_MODES_DICT.

  • Property svn:keywords set to Id
File size: 5.0 KB
Line 
1## $Id: utils.py 14590 2017-02-25 05:28:27Z 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"""
20from copy import deepcopy
21from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
22from waeup.fceokene.interfaces import MessageFactory as _
23
24class CustomKofaUtils(NigeriaKofaUtils):
25    """A collection of methods subject to customization.
26    """
27
28    STUDY_MODES_DICT = {
29        #'ume_ft': 'UME Full Time',
30        'ug_ft': 'Undergraduate Full Time',
31        #'ug_pt': 'Undergraduate Part Time',
32        #'dp_pt': 'Diploma Part Time',
33        'ct_ft': 'Certificate Full Time',
34        #'dp_ft': 'Diploma Full Time',
35        #'de_ft': 'Direct Entry Full Time',
36        #'de_pt': 'Direct Entry Part Time',
37        #'nd_ft': 'National Diploma Full Time',
38        #'nd_pt': 'National Diploma Part Time',
39        #'hnd_ft': 'Higher National Diploma Full Time',
40        #'hnd_pt': 'Higher National Diploma Part Time',
41        #'pg_ft': 'Postgraduate Full Time',
42        #'pg_pt': 'Postgraduate Part Time',
43        #'pgd_ft': 'Postgraduate Diploma Full Time',
44        #'pgd_pt': 'Postgraduate Diploma Part Time',
45        #'special_pg_pt': 'Special Postgraduate Part Time',
46        'nce_ft': 'NCE Full Time',
47        #'nce_pt': 'NCE Part Time',
48        #'ug_sw': 'Undergraduate Sandwich',
49        'nce_sw': 'NCE Sandwich',
50        #'jm_ft': 'Joint Matriculation Full Time',
51        #'ph_ft': 'Post Higher Education Full Time',
52        #'transfer_pt': 'Transfer Part Time',
53        #'transfer_ft': 'Transfer Full Time',
54        #'ct_pt': 'Certificate Part Time',
55        #'rmd_ft': 'Remedial with deficiencies',
56        #'rm_ft': 'Remedial',
57        'transfer': 'Transfer',
58        'prence': 'Pre-NCE',
59        #'prend': 'Pre-ND',
60        #'pce': 'PCE',
61        'pd_ft': 'Professional Diploma in Education',
62        #'found': 'Foundation',
63        'no': 'no application',
64        }
65
66    PREFERRED_LANGUAGES_DICT = {
67        }
68
69    APP_CATS_DICT = {
70        'basic': 'UTME, DE, PCE, PRENCE',
71        'no': 'No Application',
72        'sandwich': 'Sandwich',
73        'cest': 'Part-Time, Diploma, Certificate',
74        'bec': 'Bachelor of Education Certificate Programmes',
75        }
76
77    SPECIAL_HANDLING_DICT = {
78        'regular': 'Regular Hostel',
79        'blocked': 'Blocked Hostel',
80        'ugft': 'Undergraduate Fulltime Hostel'
81        }
82
83    PAYMENT_CATEGORIES = {
84        'schoolfee': 'School Fee',
85        'clearance': 'Acceptance Fee',
86        'bed_allocation': 'Bed Allocation Fee',
87        'hostel_maintenance': 'Hostel Maintenance Fee',
88        #'transfer': 'Transfer Fee',
89        #'gown': 'Gown Hire Fee',
90        'application': 'Application Fee',
91        #'transcript': 'Transcript Fee',
92        'third_semester': 'NCE Third Semester Fee',
93        }
94
95    DISABLE_PAYMENT_GROUP_DICT = {
96        'sf_all': 'School Fee - All Students',
97        'sf_nce1': 'School Fee - NCE I Fresh Students',
98        }
99
100    SELECTABLE_PAYMENT_CATEGORIES = deepcopy(PAYMENT_CATEGORIES)
101
102    VERDICTS_DICT = {
103        '0': 'not yet',
104        'A': 'Successful student',
105        'B': 'Student with carryover courses',
106        'C': 'Student on probation',
107        'D': 'Withdrawn from the faculty',
108        #'E': 'Student who were previously on probation',
109        #'F': 'Medical case',
110        'G': 'Absent from examination',
111        #'H': 'Withheld results',
112        'I': 'Expelled/rusticated/suspended student',
113        'J': 'Temporary withdrawn from the university',
114        #'K': 'Unregistered student',
115        'L': 'Referred student',
116        'M': 'Reinstatement',
117        #'N': 'Student on transfer',
118        'O': 'NCE-III repeater',
119        #'Y': 'No previous verdict',
120        #'X': 'New 300 level student (Uniben)',
121        'Z': 'Successful student (provisional)',
122        'A1': 'First Class',
123        'A2': 'Second Class Upper',
124        'A3': 'Second Class Lower',
125        'A4': 'Third Class',
126        'A5': 'Pass',
127        'A6': 'Distinction',
128        'A7': 'Credit',
129        'A8': 'Merit',
130        'OPDE': 'PDE repeater',
131        }
132
133    def getPaymentItem(self, payment):
134        """Return payment item.
135
136        Bed coordinates are only visible after payment.
137        """
138        if 'maintenance' in payment.p_category and payment.p_state != 'paid':
139            return _('(visible after successful payment)')
140        return payment.p_item
Note: See TracBrowser for help on using the repository browser.