source: main/waeup.aaue/trunk/src/waeup/aaue/students/interfaces.py @ 9441

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

Prepare for previous session payments.

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