source: WAeUP_SRP/trunk/skins/waeup_epayment/getSchoolFee.py @ 2072

Last change on this file since 2072 was 1994, checked in by joachim, 17 years ago

make getSchoolFee more flexible

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1## Script (Python) "getSchoolFee"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=faculty=None, session=None
8##title=
9##
10# $Id: getSchoolFee.py 1994 2007-07-06 07:54:34Z joachim $
11"""
12return SchoolFee
13"""
14
15fee1 = ("ART",
16        "SSC",
17        "LAW",
18        "EDU",
19        )
20session_fees = {'99': ('22200','23700'),
21                '00': ('22200','23700'),
22                '01': ('22200','23700'),
23                '02': ('22200','23700'),
24                '03': ('22200','23700'),
25                '04': ('22200','23700'),
26                '05': ('22200','23700'),
27                '06': ('22200','23700'),
28                }
29#sessionstring = "School Fee for Session %s" % context.portal_vocabularies.sessions.get(session)
30# sessionstring = "School Fee for Session %s" % context.sessions_voc(key=session)
31# fee_1_data = ("22200",sessionstring)
32# fee_2_data = ("23700",sessionstring)
33
34# if faculty in fee1:
35#     return fee_1_data
36# return fee_2_data
37f = 1
38if faculty in fee1:
39    f = 0
40return (session_fees[session][f],
41        "School Fee for Session %s" % context.sessions_voc(key=session))
42
Note: See TracBrowser for help on using the repository browser.