Changeset 5061 for WAeUP_SRP/trunk/skins/waeup_epayment
- Timestamp:
- 15 Mar 2010, 07:26:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/getSchoolFeePrefix.py
-
Property
svn:keywords
set to
Id
r4788 r5061 8 8 ##title= 9 9 ## 10 # $Id:get MaintenancePrefix.py 486 2006-09-06 10:09:39Z joachim $10 # $Id:getSchoolFeePrefix.py 486 2006-09-06 10:09:39Z joachim $ 11 11 """ 12 12 return the Prefix for Schoolfee … … 27 27 student_record = context.students_catalog(id=student_id)[0] 28 28 29 # still to be configured properly (see ticket 651) 30 #if student_record.lga == 'foreigner': 31 # if student_record.faculty in ('ART','LAW','SSC','MGS'): 32 # prefix == 'FRNART' 33 # elif student_record.faculty in ('MED'): 34 # prefix == 'FRNSCI' 35 # else: 36 # logger.info('%s, foreign student faculty %s not found' % (student_id,student_record.faculty)) 37 # prefix = "--" 38 # return prefix 39 # if student_record.review_state == 'cleared_and_validated': 40 # prefix = prefix + 'NEW' 41 # return prefix 29 FRNART = ( 30 "BADTSW", 31 "BAEDEDO", 32 "BAEDEL", 33 "BAEDENG", 34 "BAEDFAA", 35 "BAEDFRC", 36 "BAEDHIS", 37 "BBEDSW", 38 "BECOSW", 39 "BEDADT", 40 "BEMGTSW", 41 "BENLSW", 42 "BGEOSW", 43 "BHISSW", 44 "BPOLSW", 45 "BSCEDAC", 46 "BSCEDAP", 47 "BSCEDB", 48 "BSCEDBE", 49 "BSCEDE", 50 "BSCEDECO", 51 "BSCEDES", 52 "BSCEDG", 53 "BSCEDGEO", 54 "BSCEDGR", 55 "BSCEDPOL", 56 "BSCEDPS", 57 "BSCEDSE", 58 "BSCEDSOC", 59 "BSCEDSS", 60 "BSSTSW", 61 "DAED", 62 ) 63 64 FRNSCI = ( 65 "BAGRSW", 66 "BBIOSW", 67 "BCHESW", 68 "BCSCSW", 69 "BHECSW", 70 "BHEDSW", 71 "BISCSW", 72 "BITESW", 73 "BSCEDAG", 74 "BSCEDBC", 75 "BSCEDC", 76 "BSCEDCO", 77 "BSCEDEE", 78 "BSCEDEM", 79 "BSCEDEV", 80 "BSCEDHE", 81 "BSCEDHK", 82 "BSCEDHM", 83 "BSCEDIS", 84 "BSCEDM", 85 "BSCEDME", 86 "BSCEDP", 87 "BSCEDPE", 88 "BSCEDTE", 89 "BSCEDWB", 90 "DHT", 91 ) 92 93 if student_record.lga == 'foreigner': 94 if student_record.course in FRNART: 95 prefix == 'FRNART' 96 elif student_record.course in FRNSCI: 97 prefix == 'FRNSCI' 98 else: 99 logger.info('%s, foreign student course %s not categorized' % (student_id,student_record.faculty)) 100 prefix = "--" 101 return prefix 102 if student_record.review_state == 'cleared_and_validated': 103 prefix = prefix + 'NEW' 104 return prefix 42 105 43 106 res = context.certificates_catalog(code = student_record.course) -
Property
svn:keywords
set to
Note: See TracChangeset for help on using the changeset viewer.