Changeset 15963 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 28 Jan 2020, 08:34:57 (5 years ago)
- 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 508 508 grok.name('outstandingcourses') 509 509 510 fields = ('student_id', ' certcode', 'display_fullname','missed',511 ' failed', 'nottaken')510 fields = ('student_id', 'matric_number', 'certcode', 'display_fullname', 511 'missed', 'failed', 'nottaken') 512 512 title = _(u'Outstanding Courses') 513 513 … … 520 520 """ 521 521 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'): 523 524 value = getattr(context[0], name, None) 524 525 elif name == 'missed': -
main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py
r15102 r15963 145 145 """Determine the number and credits of passed and failed courses. 146 146 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. 148 149 """ 149 150 passed = failed = 0 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r15924 r15963 839 839 self.assertEqual( 840 840 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' 843 843 ) 844 844 return
Note: See TracChangeset for help on using the changeset viewer.