Changeset 9983 for main


Ignore:
Timestamp:
23 Feb 2013, 07:17:57 (12 years ago)
Author:
Henrik Bettermann
Message:

StudentPaymentsOverviewExporter?: export matric_number and name.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r9937 r9983  
    345345
    346346    #: Fieldnames considered by this exporter
    347     fields = ('student_id', ) + (
     347    fields = ('student_id', 'matric_number', 'display_fullname',
    348348        'state', 'certcode', 'faccode', 'depcode', 'is_postgrad',
    349349        'current_level', 'current_session', 'current_mode',
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r9937 r9983  
    851851        result = open(self.outfile, 'rb').read()
    852852        self.assertEqual(
    853             'student_id,state,certcode,faccode,depcode,is_postgrad,'
     853            'student_id,matric_number,display_fullname,state,certcode,'
     854            'faccode,depcode,is_postgrad,'
    854855            'current_level,current_session,current_mode,'
    855856            '%s\r\n'
    856             'A111111,created,CERT1,NA,NA,0,200,2012,ug_ft,'
     857            'A111111,234,Anna M. Tester,created,CERT1,NA,NA,0,200,2012,ug_ft,'
    857858            ',,,,,,,,,\r\n' % year_range_str,
    858859            result
     
    875876        result = open(self.outfile, 'rb').read()
    876877        self.assertEqual(
    877             'student_id,state,certcode,faccode,depcode,is_postgrad,'
     878            'student_id,matric_number,display_fullname,state,'
     879            'certcode,faccode,depcode,is_postgrad,'
    878880            'current_level,current_session,current_mode,'
    879             '%s\r\nA111111,created,CERT1,NA,NA,0,'
     881            '%s\r\nA111111,234,Anna M. Tester,created,CERT1,NA,NA,0,'
    880882            '200,2012,ug_ft,,,,,,12.12,,,,\r\n' % year_range_str,
    881883            result
Note: See TracChangeset for help on using the changeset viewer.