## $Id: utils.py 12574 2015-02-10 06:18:11Z henrik $ ## ## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## import grok from waeup.kofa.students.utils import StudentsUtils from kofacustom.nigeria.interfaces import MessageFactory as _ class NigeriaStudentsUtils(StudentsUtils): """A collection of customized methods. """ VERDICTS_DICT = { '0': 'not yet', 'A': 'Successful student', 'B': 'Student with carryover courses', 'C': 'Student on probation', 'D': 'Withdrawn from the faculty', 'E': 'Student who were previously on probation', 'F': 'Medical case', 'G': 'Absent from examination', 'H': 'Withheld results', 'I': 'Expelled/rusticated/suspended student', 'J': 'Temporary withdrawn from the university', 'K': 'Unregistered student', 'L': 'Referred student', 'M': 'Reinstatement', 'N': 'Student on transfer', #'O': 'NCE-III repeater', # FCEOkene only 'P': 'Exhausted maximum years in the university', 'Y': 'No previous verdict', 'X': 'New 300 level student (Uniben)', 'Z': 'Successful student (provisional)', 'A1': 'First Class', 'A2': 'Second Class Upper', 'A3': 'Second Class Lower', 'A4': 'Third Class', 'A5': 'Pass', 'A6': 'Distinction', 'A7': 'Credit', 'A8': 'Merit', } SEPARATORS_DICT = { 'form.fst_sit_fname': _(u'First Sitting Record'), 'form.scd_sit_fname': _(u'Second Sitting Record'), 'form.alr_fname': _(u'Advanced Level Record'), 'form.hq_type': _(u'Higher Education Record'), 'form.hq2_type': _(u'Second Higher Education Record'), 'form.nysc_year': _(u'NYSC Information'), 'form.employer': _(u'Employment History'), 'form.former_matric': _(u'Former Student'), } STUDENT_EXPORTER_NAMES = StudentsUtils().STUDENT_EXPORTER_NAMES + ( 'clearancerequested',)