source: main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py @ 9111

Last change on this file since 9111 was 8866, checked in by Henrik Bettermann, 12 years ago

ICustomStudentOnlinePayment must be derived from ICustomOnlinePayment. In most cases we have different payment_categories which are defined via ICustomOnlinePayment.

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1## $Id: interfaces.py 8866 2012-07-01 17:46:05Z 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
19from zope import schema
20from kofacustom.nigeria.students.interfaces import (
21    INigeriaStudentBase, INigeriaUGStudentClearance, INigeriaPGStudentClearance,
22    INigeriaStudentPersonal, INigeriaStudentStudyLevel,
23    INigeriaStudentStudyCourse, INigeriaCourseTicket,
24    INigeriaStudentUpdateByRegNo, INigeriaStudentUpdateByMatricNo,
25    )
26from waeup.uniben.payments.interfaces import ICustomOnlinePayment
27from waeup.uniben.interfaces import MessageFactory as _
28
29class ICustomStudentBase(INigeriaStudentBase):
30    """Representation of student base data.
31
32    """
33
34class ICustomStudentPersonal(INigeriaStudentPersonal):
35    """Student personal data.
36
37    """
38
39class ICustomUGStudentClearance(INigeriaUGStudentClearance):
40    """Representation of ug student clearance data.
41
42    """
43
44class ICustomPGStudentClearance(INigeriaPGStudentClearance):
45    """Representation of pg student clearance data.
46
47    """
48
49
50class ICustomStudent(ICustomStudentBase,ICustomUGStudentClearance,
51    ICustomPGStudentClearance,ICustomStudentPersonal):
52    """Representation of a student.
53
54    """
55
56class ICustomStudentStudyCourse(INigeriaStudentStudyCourse):
57    """A container for student study levels.
58
59    """
60
61class ICustomStudentStudyLevel(INigeriaStudentStudyLevel):
62    """A container for course tickets.
63
64    """
65
66class ICustomStudentOnlinePayment(ICustomOnlinePayment):
67    """A student payment via payment gateways.
68
69    This Interface does not inherit from IStudentOnlinePayment.
70    Thus all fields from IStudentOnlinePayment have to be repeated here.
71    """
72
73    p_level = schema.Int(
74        title = _(u'Payment Level'),
75        required = False,
76        readonly = True,
77        )
78
79ICustomStudentOnlinePayment['p_level'].order = ICustomStudentOnlinePayment[
80    'p_session'].order
81
82class ICustomCourseTicket(INigeriaCourseTicket):
83    """A course ticket.
84
85    """
86
87class ICustomStudentUpdateByRegNo(INigeriaStudentUpdateByRegNo):
88    """Representation of a student. Skip regular reg_number validation.
89
90    """
91
92class ICustomStudentUpdateByMatricNo(INigeriaStudentUpdateByMatricNo):
93    """Representation of a student. Skip regular matric_number validation.
94
95    """
Note: See TracBrowser for help on using the repository browser.