source: main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interfaces.py @ 17397

Last change on this file since 17397 was 16401, checked in by Henrik Bettermann, 4 years ago

Belongs to last commit.

  • Property svn:keywords set to Id
File size: 3.1 KB
RevLine 
[13355]1## $Id: interfaces.py 16401 2021-02-24 19:15:52Z 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##
18
19import zope.i18nmessageid
20from zope import schema
21from zc.sourcefactory.basic import BasicSourceFactory
22from waeup.kofa.interfaces import (SimpleKofaVocabulary,
23    ISessionConfiguration, academic_sessions_vocab)
24
[14035]25_ = MessageFactory = zope.i18nmessageid.MessageFactory('kofacustom.coewarri')
[13355]26
27class ICustomSessionConfiguration(ISessionConfiguration):
28    """A session configuration object.
29    """
30
[14456]31    clearance_fee = schema.Float(
32        title = _(u'Acceptance Fee (not used)'),
[13355]33        default = 0.0,
34        required = False,
35        )
36
[14455]37    clearance_fee_1 = schema.Float(
[14456]38        title = _(u'Acceptance Fee NCE'),
[13355]39        default = 0.0,
40        required = False,
41        )
42
[14455]43    clearance_fee_2 = schema.Float(
[14456]44        title = _(u'Acceptance Fee Degree'),
[14455]45        default = 0.0,
46        required = False,
47        )
48
[14589]49    clearance_fee_3 = schema.Float(
[15787]50        title = _(u'Acceptance Fee NCE Part-Time'),
[14589]51        default = 0.0,
52        required = False,
53        )
54
[13355]55    booking_fee = schema.Float(
[14456]56        title = _(u'Bed Booking Fee'),
[13355]57        default = 0.0,
58        required = False,
59        )
60
61    maint_fee = schema.Float(
[14456]62        title = _(u'Rent (fallback)'),
[13355]63        default = 0.0,
64        required = False,
65        )
66
[14456]67    late_registration_fee = schema.Float(
68        title = _(u'Late Course Reg. Fee'),
69        default = 0.0,
70        required = False,
71        )
72
[16370]73    lsfp_penalty_fee = schema.Float(
[16401]74        title = _(u'Late School Fee Payment Penalty Fee'),
[16370]75        default = 0.0,
76        required = False,
77        )
78
[13355]79    transcript_fee = schema.Float(
80        title = _(u'Transcript Fee'),
81        default = 0.0,
82        required = False,
83        )
84
[14456]85    transfer_fee = schema.Float(
86        title = _(u'Transfer Fee'),
87        default = 0.0,
88        required = False,
89        )
[13355]90
91    def getSessionString():
92        """Returns the session string from the vocabulary.
93        """
94
95
96class ICustomSessionConfigurationAdd(ICustomSessionConfiguration):
97    """A session configuration object in add mode.
98    """
99
100    academic_session = schema.Choice(
101        title = _(u'Academic Session'),
102        source = academic_sessions_vocab,
103        default = None,
104        required = True,
105        readonly = False,
106        )
107
108ICustomSessionConfigurationAdd[
109    'academic_session'].order =  ICustomSessionConfiguration[
[10765]110    'academic_session'].order
Note: See TracBrowser for help on using the repository browser.