Changeset 3241
- Timestamp:
- 26 Feb 2008, 22:56:30 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/uniben/waeup_custom/getPaymentsFolderInfo.py
r3238 r3241 11 11 """ 12 12 Info for the PaymentsFolder 13 try:14 from Products.zdb import set_trace15 except:16 def set_trace():17 pass18 13 """ 19 20 14 from Products.AdvancedQuery import Eq, Between, Le,In 21 15 … … 27 21 if mtool.isAnonymousUser(): 28 22 return None 23 try: 24 from Products.zdb import set_trace 25 except: 26 def set_trace(): 27 pass 29 28 30 #import logging31 #logger = logging.getLogger('Skins.getPaymentsFolderInfo')32 29 def cmp_id(a,b): 33 30 s1 = "%(id)s" % a … … 66 63 info['reasons'] = next_info['reasons'] 67 64 65 # begin customization 66 68 67 if review_state == 'cleared_and_validated' and session != '07': 69 68 info['payment_method'] = "online_payment" … … 73 72 info['payment_method'] = "sc_payment" 74 73 info['prod_id'] = '61' 74 75 # end customization 75 76 76 77 info['student_name'] = student_record.name … … 92 93 payment.date.strftime("%d/%m/%y %H:%M:%S")) 93 94 url = row['url'] = "%s/p%s" % (payments_path,payment.order_id[6:]) 94 row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees or str(member) in ('admin',)95 row['is_approvable'] = is_so and row['is_requeryable'] 95 row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'online' or str(member) in ('admin',) 96 row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maitenance 96 97 row['resp_desc'] = payment.resp_desc or 'Payment Process Interrupted' 97 98 row['trans_ref'] = payment.order_id … … 99 100 row['callback_url'] = "%(url)s/interswitch_cb" % row 100 101 # if payment.category == 'schoolfee': 101 # row['callback_url'] = "%(url)s/interswitch_cb" % row 102 # row['callback_url'] = "%(url)s/interswitch_cb" % row 102 103 # elif payment.category == 'hostel_maintenance': 103 # row['callback_url'] = "%(url)s/interswitch_acco_cb" % row 104 # row['callback_url'] = "%(url)s/interswitch_acco_cb" % row 104 105 # else: 105 106 href = '%(query_url)s' % info … … 115 116 payments.append(row) 116 117 117 118 119 118 payments.sort(cmp_id) 120 119 info['payments'] = payments 121 122 123 120 return info 124 121
Note: See TracChangeset for help on using the changeset viewer.