Changeset 8315
- Timestamp:
- 30 Apr 2012, 12:15:36 (13 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_uniben
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_uniben/getPaymentInfo.py
r8205 r8315 47 47 #info['entry_mode'] = sbrain.entry_mode 48 48 49 try: 50 p_date = payment.date.strftime("%d/%m/%y %H:%M:%S") 51 except: 52 p_date = '(no payment date provided)' 49 53 54 info['p_date'] = p_date 50 55 return info -
WAeUP_SRP/trunk/skins/waeup_uniben/getPaymentsFolderInfo.py
r8134 r8315 101 101 row = {} 102 102 row['id'] = payment.key 103 try: 104 p_date = payment.date.strftime("%d/%m/%y %H:%M:%S") 105 except: 106 p_date = '(no payment date provided)' 103 107 if payment.status == 'invalid': 104 108 row['title'] = "Invalid Payment, Naira %s, %s" % (payment.amount, 105 p ayment.date.strftime("%d/%m/%y %H:%M:%S"))109 p_date) 106 110 else: 107 111 row['title'] = "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category), 108 112 vocabularies.sessions.get(payment.session_id), 109 113 payment.amount, 110 p ayment.date.strftime("%d/%m/%y %H:%M:%S"))114 p_date) 111 115 oid = payment.order_id 112 116 onr = oid.rfind('-')+1 -
WAeUP_SRP/trunk/skins/waeup_uniben/payment_receipt.pt
r8211 r8315 65 65 <tr> 66 66 <td width="220px">Transaction Date:</td> 67 <td><span tal:content= 'python:pm.date.strftime("%d/%m/%y %H:%M:%S")'/></td>67 <td><span tal:content="info/p_date" /></td> 68 68 </tr> 69 69 <tr>
Note: See TracChangeset for help on using the changeset viewer.