source: main/kofacustom.nigeria/branches/uli-paypal/src/kofacustom/nigeria/students/utils.py @ 17394

Last change on this file since 17394 was 15651, checked in by Henrik Bettermann, 5 years ago

Make max file size customizable.

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1## $Id: utils.py 15651 2019-10-09 09:14:07Z henrik $
2##
3## Copyright (C) 2011 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##
18import grok
19from waeup.kofa.students.utils import StudentsUtils
20from kofacustom.nigeria.interfaces import MessageFactory as _
21
22class NigeriaStudentsUtils(StudentsUtils):
23    """A collection of customized methods.
24
25    """
26
27    SEPARATORS_DICT = {
28        'form.fst_sit_fname': _(u'First Sitting Record'),
29        'form.scd_sit_fname': _(u'Second Sitting Record'),
30        'form.alr_fname': _(u'Advanced Level Record'),
31        'form.hq_type': _(u'Higher Education Record'),
32        'form.hq2_type': _(u'Second Higher Education Record'),
33        'form.nysc_year': _(u'NYSC Information'),
34        'form.employer': _(u'Employment History'),
35        'form.former_matric': _(u'Former Student'),
36        }
37
38    STUDENT_EXPORTER_NAMES = StudentsUtils().STUDENT_EXPORTER_NAMES + (
39            'clearancerequested',)
40
41    # Maximum size of upload files in kB
42    MAX_KB = 250
Note: See TracBrowser for help on using the repository browser.