source: main/waeup.custom/trunk/src/waeup/custom/interfaces.py @ 7032

Last change on this file since 7032 was 7021, checked in by Henrik Bettermann, 13 years ago

Adjust customisation and base package.

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1##
2## interfaces.py
3from zope import schema
4from waeup.sirp.interfaces import (
5    IWAeUPObject, ISessionConfiguration, academic_sessions_vocab)
6
7# It's recommended to replicate all fields from the base package here.
8class ISessionConfiguration(ISessionConfiguration):
9    """A session configuration object.
10    """
11
12    school_fee_base = schema.Int(
13        title = u'School Fee',
14        default = 0,
15        )
16
17    surcharge_1 = schema.Int(
18        title = u'Surcharge BT',
19        default = 0,
20        )
21
22    surcharge_2 = schema.Int(
23        title = u'Surcharge Interswitch',
24        default = 0,
25        )
26
27    surcharge_3 = schema.Int(
28        title = u'Surcharge 3',
29        default = 0,
30        )
31
32    clearance = schema.Int(
33        title = u'Clearance Fee',
34        default = 0,
35        )
36
37    booking_fee = schema.Int(
38        title = u'Booking Fee',
39        default = 0,
40        )
41
42    maint_fee = schema.Int(
43        title = u'Maintenance Fee',
44        default = 0,
45        )
46
47    gown = schema.Int(
48        title = u'Gown Fee',
49        default = 0,
50        )
51
52    transfer = schema.Int(
53        title = u'Transfer Fee',
54        default = 0,
55        )
56
57    def getSessionString():
58        """Returns the session string from the vocabulary.
59        """
60
61
62class ISessionConfigurationAdd(ISessionConfiguration):
63    """A session configuration object in add mode.
64    """
65
66    academic_session = schema.Choice(
67        title = u'Academic Session',
68        source = academic_sessions_vocab,
69        default = None,
70        required = True,
71        readonly = False,
72        )
73
74ISessionConfigurationAdd['academic_session'].order =  ISessionConfiguration[
75    'academic_session'].order
Note: See TracBrowser for help on using the repository browser.