Ignore:
Timestamp:
28 Jan 2020, 08:34:57 (5 years ago)
Author:
Henrik Bettermann
Message:

Export matric_number.

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

Legend:

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

    r15924 r15963  
    508508    grok.name('outstandingcourses')
    509509
    510     fields = ('student_id', 'certcode', 'display_fullname','missed',
    511               'failed', 'nottaken')
     510    fields = ('student_id', 'matric_number', 'certcode', 'display_fullname',
     511              'missed', 'failed', 'nottaken')
    512512    title = _(u'Outstanding Courses')
    513513
     
    520520        """
    521521        if context is not None:
    522             if name in ('student_id', 'display_fullname', 'certcode'):
     522            if name in ('student_id', 'matric_number',
     523                        'display_fullname', 'certcode'):
    523524                value = getattr(context[0], name, None)
    524525            elif name == 'missed':
  • main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py

    r15102 r15963  
    145145        """Determine the number and credits of passed and failed courses.
    146146        Count the number of courses registered but not taken.
    147         This method is used for level reports.
     147        This method is used for level reports and the
     148        OutstandingCoursesExporter.
    148149        """
    149150        passed = failed = 0
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r15924 r15963  
    839839        self.assertEqual(
    840840            result,
    841             'student_id,certcode,display_fullname,missed,failed,nottaken\r\n'
    842             'A111111,CERT1,Anna M. Tester,C2_400 ,C3 ,C1 CRS1 \r\n'
     841            'student_id,matric_number,certcode,display_fullname,missed,failed,nottaken\r\n'
     842            'A111111,234,CERT1,Anna M. Tester,C2_400 ,C3 ,C1 CRS1 \r\n'
    843843            )
    844844        return
Note: See TracChangeset for help on using the changeset viewer.