Ignore:
Timestamp:
7 Jun 2016, 09:25:02 (9 years ago)
Author:
Henrik Bettermann
Message:

Fix mangle_value method of DataForLecturerExporter?.

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

    r13871 r13885  
    364364        if context is not None:
    365365            student = context.student
    366             if name in ('student_id', 'fullname') and student is not None:
     366            if name in ('matric_number',
     367                        'reg_number',
     368                        'student_id',
     369                        'display_fullname',) and student is not None:
    367370                value = getattr(student, name, None)
    368371        return super(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r13868 r13885  
    38353835        self.assertEqual(self.browser.contents,
    38363836            'matric_number,reg_number,student_id,display_fullname,level,code,'
    3837             'level_session,score\r\n,,K1000000,,100,COURSE1,2004,\r\n')
     3837            'level_session,score\r\n234,123,K1000000,Anna Tester,'
     3838            '100,COURSE1,2004,\r\n')
    38383839        self.assertEqual(len(self.app['datacenter'].running_exports), 1)
    38393840        job_id = self.app['datacenter'].running_exports[0][0]
Note: See TracChangeset for help on using the changeset viewer.