[2644] | 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=brain=None |
---|
| 8 | ##title= |
---|
| 9 | ## |
---|
| 10 | # $Id: getSchoolFee.py 2534 2007-11-05 06:37:12Z henrik $ |
---|
| 11 | """ |
---|
| 12 | return SchoolFee |
---|
| 13 | """ |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | ARTS = ('CRS','ISS','HIS','MUS','ECO','GEO','POL','SOS','CCA','ECU','THA','GED','GSE','PES','SPC','ENG ','FRE','ARB','HAU','IGB','YOR','FAA') |
---|
| 17 | |
---|
| 18 | # SCS = ('BIO','CHE','HED','MAT','PED','PHY ','CSC','ISC','PHE','AGE','BED','HEC','TED') |
---|
| 19 | |
---|
| 20 | d = {} |
---|
[2836] | 21 | if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': |
---|
[2644] | 22 | if brain.department in ARTS: |
---|
| 23 | d['all'] = 11520 |
---|
[2646] | 24 | else: |
---|
[2644] | 25 | d['all'] = 11995 |
---|
[3050] | 26 | elif str(brain.level) == '000' and brain.review_state == 'cleared_and_validated': |
---|
| 27 | if brain.department in ARTS: |
---|
| 28 | d['all'] = 14400 |
---|
| 29 | else: |
---|
| 30 | d['all'] = 14900 |
---|
[2836] | 31 | elif str(brain.level) == '100' and brain.review_state == 'returning': |
---|
[2644] | 32 | if brain.department in ARTS: |
---|
[2646] | 33 | d['all'] = 10570 |
---|
| 34 | else: |
---|
[2644] | 35 | d['all'] = 11045 |
---|
[2836] | 36 | elif str(brain.level) in ('200','300'): |
---|
[2644] | 37 | if brain.department in ARTS: |
---|
| 38 | d['all'] = 10570 |
---|
[2646] | 39 | else: |
---|
| 40 | d['all'] = 11045 |
---|
| 41 | else: |
---|
| 42 | d['all'] = 0 |
---|
| 43 | |
---|
| 44 | |
---|
[2644] | 45 | next_info = context.getNextInfo(brain) |
---|
| 46 | next_session_str = next_info['next_session_str'] |
---|
[2913] | 47 | d['next_session_id'] = next_info['next_session_id'] |
---|
[2644] | 48 | d['description'] = "School Fee for Session %s" % next_session_str |
---|
[2646] | 49 | |
---|
[2644] | 50 | return d |
---|
| 51 | |
---|