Ignore:
Timestamp:
28 Jan 2007, 23:44:34 (18 years ago)
Author:
Henrik Bettermann
Message:

fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_utilities/fixScratchCardPayments.py

    r1372 r1373  
    1010# $Id: fixScratchCardPayments.py 1371 2007-01-28 21:36:52Z henrik $
    1111"""
    12 list Students for ClearanceOfficers
     12
    1313"""
    1414
     
    2525students = context.portal_url.getPortalObject().campus.students
    2626payments = context.portal_catalog(portal_type='Payment')
    27 d = {}
     27
    2828list = []
    29 d['resp_code'] = "SC"
    30 d['resp_desc'] = "SC Payment Successful"
    3129for brain in payments:
     30    d = {}
     31    d['resp_code'] = "SC"
     32    d['resp_desc'] = "SC Payment Successful"
    3233    payment = brain.getObject()
    3334    pay_doc = payment.getContent()
     
    4041        d['type_code'] = pay_doc.type_code.replace('transfer_','')
    4142        pay_doc.edit(mapping=d)
    42         list.append('%s changed' % pay_doc.type_description)   
     43        list.append('%s changed' % pay_doc.type_description)
    4344return '\n'.join(list)
Note: See TracChangeset for help on using the changeset viewer.