Last change
on this file since 2000 was
1994,
checked in by joachim, 17 years ago
|
make getSchoolFee more flexible
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Rev | Line | |
---|
[1240] | 1 | ## Script (Python) "getSchoolFee" |
---|
| 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
[1992] | 7 | ##parameters=faculty=None, session=None |
---|
[1240] | 8 | ##title= |
---|
| 9 | ## |
---|
| 10 | # $Id: getSchoolFee.py 1994 2007-07-06 07:54:34Z joachim $ |
---|
| 11 | """ |
---|
| 12 | return SchoolFee |
---|
| 13 | """ |
---|
| 14 | |
---|
| 15 | fee1 = ("ART", |
---|
| 16 | "SSC", |
---|
| 17 | "LAW", |
---|
| 18 | "EDU", |
---|
| 19 | ) |
---|
[1994] | 20 | session_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) |
---|
[1240] | 33 | |
---|
[1994] | 34 | # if faculty in fee1: |
---|
| 35 | # return fee_1_data |
---|
| 36 | # return fee_2_data |
---|
| 37 | f = 1 |
---|
[1240] | 38 | if faculty in fee1: |
---|
[1994] | 39 | f = 0 |
---|
| 40 | return (session_fees[session][f], |
---|
| 41 | "School Fee for Session %s" % context.sessions_voc(key=session)) |
---|
[1240] | 42 | |
---|
Note: See
TracBrowser for help on using the repository browser.