Ignore:
Timestamp:
28 Sep 2012, 09:56:23 (12 years ago)
Author:
Henrik Bettermann
Message:

Export always certcode which is very helpful for offline data evaluation. Also add current_level, current_session and is_postgrad to StudentExporter?.

File:
1 edited

Legend:

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

    r9235 r9253  
    4545            'firstname,lastname,matric_number,middlename,nationality,'
    4646            'perm_address,phone,reg_number,sex,student_id,suspended,password,'
    47             'state,history,certcode\r\n'
     47            'state,history,certcode,is_postgrad,current_level,current_session\r\n'
    4848
    4949            'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,'
     
    6565            'firstname,lastname,matric_number,middlename,nationality,'
    6666            'perm_address,phone,reg_number,sex,student_id,suspended,password,'
    67             'state,history,certcode\r\n'
     67            'state,history,certcode,is_postgrad,current_level,current_session\r\n'
    6868
    6969            'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,'
     
    8484            'firstname,lastname,matric_number,middlename,nationality,'
    8585            'perm_address,phone,reg_number,sex,student_id,suspended,password,'
    86             'state,history,certcode\r\n'
     86            'state,history,certcode,is_postgrad,current_level,current_session\r\n'
    8787
    8888            'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,'
     
    210210            result,
    211211            'level,level_session,level_verdict,validated_by,validation_date,'
    212             'student_id,number_of_tickets\r\n'
    213             ',,0,,,,0\r\n'
     212            'student_id,number_of_tickets,certcode\r\n'
     213            ',,0,,,,0,\r\n'
    214214            )
    215215        return
     
    227227            result,
    228228            'level,level_session,level_verdict,validated_by,validation_date,'
    229             'student_id,number_of_tickets\r\n'
    230             '100,2012,A,,,A111111,1\r\n'
     229            'student_id,number_of_tickets,certcode\r\n'
     230            '100,2012,A,,,A111111,1,CERT1\r\n'
    231231            )
    232232        return
     
    242242            result,
    243243            'level,level_session,level_verdict,validated_by,validation_date,'
    244             'student_id,number_of_tickets\r\n'
    245             '100,2012,A,,,A111111,1\r\n'
     244            'student_id,number_of_tickets,certcode\r\n'
     245            '100,2012,A,,,A111111,1,CERT1\r\n'
    246246            )
    247247        return
     
    256256            result,
    257257            'level,level_session,level_verdict,validated_by,validation_date,'
    258             'student_id,number_of_tickets\r\n'
    259             '100,2012,A,,,A111111,1\r\n'
     258            'student_id,number_of_tickets,certcode\r\n'
     259            '100,2012,A,,,A111111,1,CERT1\r\n'
    260260            )
    261261        return
     
    292292            result,
    293293            'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,'
    294             'passmark,score,semester,title,student_id\r\n'
    295             '0,0,,,,,,0,,0,,,\r\n'
     294            'passmark,score,semester,title,student_id,certcode\r\n'
     295            '0,0,,,,,,0,,0,,,,\r\n'
    296296            )
    297297        return
     
    310310            result,
    311311            'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,'
    312             'passmark,score,semester,title,student_id\r\n'
    313             '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111\r\n'
     312            'passmark,score,semester,title,student_id,certcode\r\n'
     313            '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111,CERT1\r\n'
    314314            )
    315315        return
     
    325325            result,
    326326            'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,'
    327             'passmark,score,semester,title,student_id\r\n'
    328             '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111\r\n'
     327            'passmark,score,semester,title,student_id,certcode\r\n'
     328            '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111,CERT1\r\n'
    329329            )
    330330        return
     
    339339            result,
    340340            'automatic,carry_over,code,credits,dcode,fcode,level,mandatory,'
    341             'passmark,score,semester,title,student_id\r\n'
    342             '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111\r\n'
     341            'passmark,score,semester,title,student_id,certcode\r\n'
     342            '1,1,CRS1,100,DEP1,FAC1,100,0,100,0,2,Course 1,A111111,CERT1\r\n'
    343343            )
    344344        return
Note: See TracChangeset for help on using the changeset viewer.