Changeset 2667


Ignore:
Timestamp:
15 Nov 2007, 15:12:34 (17 years ago)
Author:
joachim
Message:

include students name in dump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/dumpSCPayments.py

    r2665 r2667  
    6464                continue
    6565            student = res[0]
     66            d['name'] = student.name
    6667            d['faculty'] = student.faculty
    6768            d['department'] = student.department
     
    8990        pins += pin.pin,
    9091        sum += cost_dict[pin.prefix_batch]
    91 fields= ('student_id','pins','sum','matric_no','faculty','department','course')
     92fields= ('student_id','name','pins','sum','matric_no','faculty','department','course')
    9293csv_name = context.waeup_tool.dumpListToCSV(l,'sc_payments',fields=fields)
    9394logger.info('%s dumped sc payments to %s' % (member,csv_name))
Note: See TracChangeset for help on using the changeset viewer.