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
|
Rev | Line | |
---|
[6923] | 1 | ##
|
---|
| 2 | ## interfaces.py
|
---|
| 3 | from zope import schema
|
---|
[7021] | 4 | from waeup.sirp.interfaces import (
|
---|
| 5 | IWAeUPObject, ISessionConfiguration, academic_sessions_vocab)
|
---|
[6923] | 6 |
|
---|
[7021] | 7 | # It's recommended to replicate all fields from the base package here.
|
---|
| 8 | class ISessionConfiguration(ISessionConfiguration):
|
---|
[6923] | 9 | """A session configuration object.
|
---|
| 10 | """
|
---|
| 11 |
|
---|
[7021] | 12 | school_fee_base = schema.Int(
|
---|
[6923] | 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 |
|
---|
[7021] | 27 | surcharge_3 = schema.Int(
|
---|
| 28 | title = u'Surcharge 3',
|
---|
[6923] | 29 | default = 0,
|
---|
| 30 | )
|
---|
| 31 |
|
---|
[7021] | 32 | clearance = schema.Int(
|
---|
| 33 | title = u'Clearance Fee',
|
---|
[6923] | 34 | default = 0,
|
---|
| 35 | )
|
---|
| 36 |
|
---|
[7021] | 37 | booking_fee = schema.Int(
|
---|
| 38 | title = u'Booking Fee',
|
---|
[6923] | 39 | default = 0,
|
---|
| 40 | )
|
---|
| 41 |
|
---|
[7021] | 42 | maint_fee = schema.Int(
|
---|
| 43 | title = u'Maintenance Fee',
|
---|
[6950] | 44 | default = 0,
|
---|
| 45 | )
|
---|
| 46 |
|
---|
[7021] | 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 |
|
---|
[6923] | 57 | def getSessionString():
|
---|
| 58 | """Returns the session string from the vocabulary.
|
---|
| 59 | """
|
---|
| 60 |
|
---|
| 61 |
|
---|
| 62 | class 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 |
|
---|
| 74 | ISessionConfigurationAdd['academic_session'].order = ISessionConfiguration[
|
---|
| 75 | 'academic_session'].order |
---|
Note: See
TracBrowser for help on using the repository browser.