- Timestamp:
- 28 Jan 2007, 21:36:52 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/fixScratchCardPayments.py
r1370 r1371 1 ## Script (Python) " search_pins"1 ## Script (Python) "fixScratchCardPayments" 2 2 ##bind container=container 3 3 ##bind context=context … … 26 26 payments = context.portal_catalog(portal_type='Payment') 27 27 d = {} 28 list = [] 28 29 d['resp_code'] = "SC" 29 d['resp_desc'] = "Scratchcard Payment" 30 list = [] 30 d['resp_desc'] = "SC Payment Successful" 31 31 for brain in payments: 32 32 payment = brain.getObject() 33 33 pay_doc = payment.getContent() 34 34 if pay_doc.type_description.startswith('School Fee SC'): 35 d['type_description'] = 'School Fee for Session 2006/2007' 35 36 pay_doc.edit(mapping=d) 36 37 list.append('%s changed' % pay_doc.type_description) 38 elif pay_doc.type_description.startswith('Transfer Form SC'): 39 d['type_description'] = 'Transfer Form for Session 2006/2007' 40 d['type_code'] = pay_doc.type_code.replace('transfer_','') 41 pay_doc.edit(mapping=d) 42 list.append('%s changed' % pay_doc.type_description) 37 43 return '\n'.join(list) -
WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py
r1370 r1371 74 74 pin = info['order_id'] = ds.get('pin') 75 75 info['type_code'] = "%s" % pin 76 info['type_description'] = 'School Fee SC %s' % pin76 info['type_description'] = 'School Fee for Session 2006/2007' 77 77 info['resp_code'] = "SC" 78 info['resp_desc'] = "S cratchcard Payment"78 info['resp_desc'] = "SC Payment Successful" 79 79 payments.invokeFactory('Payment', p_id) 80 80 payment = getattr(payments,p_id) -
WAeUP_SRP/trunk/skins/waeup_epayment/payment_receipt.pt
r1369 r1371 48 48 49 49 50 <metal:block tal:condition="python: not info_doc['doc'].resp_code">50 <metal:block tal:condition="python:info_doc['doc'].resp_code=='SC'"> 51 51 <h3>Scratch Card Payment Receipt</h3> 52 52 <br /> … … 79 79 <table tal:define="pm python:info_doc['doc']"> 80 80 <tr> 81 <td width="220px">Access Code:</td> 82 <td><span tal:content="pm/type_code" /></td> 83 </tr> 84 <tr> 81 85 <td width="220px">Payment Description:</td> 82 86 <td><span tal:content="pm/type_description" /></td> 83 </tr> 84 <tr> 87 </tr> 88 <tr> 85 89 <td width="220px">Transaction Date:</td> 86 90 <td><span tal:content="python:pm.date.ISO()" /></td> 87 </tr> 91 </tr> 92 <tr> 93 <td width="220px">Response Code:</td> 94 <td><span tal:content="pm/resp_code" /></td> 95 </tr> 96 <tr> 97 <td width="220px">Response Description:</td> 98 <td><span tal:content="pm/resp_desc" /></td> 99 </tr> 88 100 </table> 89 101 </metal:block> 90 102 91 103 <metal:block tal:condition="python:not info_doc['doc'].resp_code"> 104 <h3>Payment Process Interrupted!</h3> 105 <br /> 106 </metal:block> 92 107 93 108 -
WAeUP_SRP/trunk/skins/waeup_student/request_transfer.py
r1356 r1371 99 99 pin = info['order_id'] = ds.get('pin') 100 100 info['type_code'] = "transfer_%s" % pin 101 info['type_description'] = 'Transfer Form SC %s' % pin 101 info['type_description'] = 'Transfer Form for Session 2006/2007' 102 info['resp_code'] = "SC" 103 info['resp_desc'] = "SC Payment Successful" 102 104 payments.invokeFactory('Payment', p_id) 103 105 payment = getattr(payments,p_id)
Note: See TracChangeset for help on using the changeset viewer.