Changeset 1373 for WAeUP_SRP/trunk/skins/waeup_utilities
- Timestamp:
- 28 Jan 2007, 23:44:34 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/fixScratchCardPayments.py
r1372 r1373 10 10 # $Id: fixScratchCardPayments.py 1371 2007-01-28 21:36:52Z henrik $ 11 11 """ 12 list Students for ClearanceOfficers 12 13 13 """ 14 14 … … 25 25 students = context.portal_url.getPortalObject().campus.students 26 26 payments = context.portal_catalog(portal_type='Payment') 27 d = {} 27 28 28 list = [] 29 d['resp_code'] = "SC"30 d['resp_desc'] = "SC Payment Successful"31 29 for brain in payments: 30 d = {} 31 d['resp_code'] = "SC" 32 d['resp_desc'] = "SC Payment Successful" 32 33 payment = brain.getObject() 33 34 pay_doc = payment.getContent() … … 40 41 d['type_code'] = pay_doc.type_code.replace('transfer_','') 41 42 pay_doc.edit(mapping=d) 42 list.append('%s changed' % pay_doc.type_description) 43 list.append('%s changed' % pay_doc.type_description) 43 44 return '\n'.join(list)
Note: See TracChangeset for help on using the changeset viewer.