Changeset 3865
- Timestamp:
- 21 Jan 2009, 07:59:00 (16 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_aaua/getPaymentsFolderInfo.py
r3813 r3865 26 26 def set_trace(): 27 27 pass 28 29 def cmp_id(a,b):30 s1 = "%(id)s" % a31 s2 = "%(id)s" % b32 if s1 == s2:33 return 034 if s1 > s2:35 return 136 return -137 28 38 29 import DateTime … … 126 117 payments.append(row) 127 118 128 payments.sort(cmp _id)119 payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref'])) 129 120 info['payments'] = payments 130 121 return info -
WAeUP_SRP/trunk/skins/waeup_aaue/getPaymentsFolderInfo.py
r3841 r3865 26 26 def set_trace(): 27 27 pass 28 29 def cmp_id(a,b):30 s1 = "%(id)s" % a31 s2 = "%(id)s" % b32 if s1 == s2:33 return 034 if s1 > s2:35 return 136 return -137 28 38 29 import DateTime … … 126 117 payments.append(row) 127 118 128 payments.sort(cmp _id)119 payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref'])) 129 120 info['payments'] = payments 130 121 return info -
WAeUP_SRP/trunk/skins/waeup_aaue/getSchoolFee.py
r3841 r3865 16 16 d = {} 17 17 18 if brain.mode == 'ug_sw': 19 if str(brain.level) == '100': # both 100 fresh and 100 returning who register for 200 20 d['all'] = 35000 21 else: 22 d['all'] = 30000 23 elif brain.mode == 'pg_sw': 24 d['all'] = 35000 25 elif brain.mode == 'dp_pt': 26 if str(brain.level) in ('100',) and brain.review_state == 'cleared_and_validated': # only 100 fresh 27 d['all'] = 40000 28 else: 29 d['all'] = 35000 30 elif brain.mode == 'ug_pt': 31 if str(brain.level) in ('100','200',) and brain.review_state == 'cleared_and_validated': # only 100 or 200 fresh 32 d['all'] = 50000 33 else: 34 d['all'] = 45000 35 elif brain.mode == 'pg_pt': 36 if str(brain.level) == '600' and brain.review_state == 'cleared_and_validated': # only 600 fresh 37 d['all'] = 60000 38 elif str(brain.level) == '700' and brain.review_state == 'cleared_and_validated': # only 700 fresh # going to register for 700 39 d['all'] = 75000 40 elif str(brain.level) == '600' and brain.verdict == 'C': # 600 repeaters 41 d['all'] = 55000 42 elif str(brain.level) == '600': # going to register for 700 43 d['all'] = 75000 44 else: 45 d['all'] = 65000 18 if brain.mode == '': 19 20 21 22 46 23 else: 47 24 d['all'] = 0 -
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py
r3863 r3865 26 26 def set_trace(): 27 27 pass 28 29 def cmp_id(a,b):30 s1 = "%(id)s" % a31 s2 = "%(id)s" % b32 if s1 == s2:33 return 034 if s1 > s2:35 return 136 return -137 28 38 29 import DateTime … … 135 126 payments.append(row) 136 127 137 payments.sort(cmp _id)128 payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref'])) 138 129 info['payments'] = payments 139 130 return info -
WAeUP_SRP/trunk/skins/waeup_fceokene/getPaymentsFolderInfo.py
r3690 r3865 26 26 def set_trace(): 27 27 pass 28 29 def cmp_id(a,b):30 s1 = "%(id)s" % a31 s2 = "%(id)s" % b32 if s1 == s2:33 return 034 if s1 > s2:35 return 136 return -137 28 38 29 import DateTime … … 126 117 payments.append(row) 127 118 128 payments.sort(cmp_id) 119 payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref'])) 120 121 129 122 info['payments'] = payments 130 123 return info -
WAeUP_SRP/trunk/skins/waeup_fceoyo/getPaymentsFolderInfo.py
r3756 r3865 26 26 def set_trace(): 27 27 pass 28 29 def cmp_id(a,b):30 s1 = "%(id)s" % a31 s2 = "%(id)s" % b32 if s1 == s2:33 return 034 if s1 > s2:35 return 136 return -137 28 38 29 import DateTime … … 126 117 payments.append(row) 127 118 128 payments.sort(cmp _id)119 payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref'])) 129 120 info['payments'] = payments 130 121 return info -
WAeUP_SRP/trunk/skins/waeup_futminna/getPaymentsFolderInfo.py
r3783 r3865 26 26 def set_trace(): 27 27 pass 28 29 def cmp_id(a,b):30 s1 = "%(id)s" % a31 s2 = "%(id)s" % b32 if s1 == s2:33 return 034 if s1 > s2:35 return 136 return -137 28 38 29 import DateTime … … 127 118 128 119 payments.sort(cmp_id) 129 info['payments'] = payments 120 payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref'])) 130 121 return info 131 122 -
WAeUP_SRP/trunk/skins/waeup_ois/getPaymentsFolderInfo.py
r3791 r3865 26 26 def set_trace(): 27 27 pass 28 29 def cmp_id(a,b):30 s1 = "%(id)s" % a31 s2 = "%(id)s" % b32 if s1 == s2:33 return 034 if s1 > s2:35 return 136 return -137 28 38 29 import DateTime … … 120 111 payments.append(row) 121 112 122 payments.sort(cmp _id)113 payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref'])) 123 114 info['payments'] = payments 124 115 return info -
WAeUP_SRP/trunk/skins/waeup_unilorin/getPaymentsFolderInfo.py
r3690 r3865 26 26 def set_trace(): 27 27 pass 28 29 def cmp_id(a,b):30 s1 = "%(id)s" % a31 s2 = "%(id)s" % b32 if s1 == s2:33 return 034 if s1 > s2:35 return 136 return -137 28 38 29 import DateTime … … 126 117 payments.append(row) 127 118 128 payments.sort(cmp _id)119 payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref'])) 129 120 info['payments'] = payments 130 121 return info
Note: See TracChangeset for help on using the changeset viewer.