Changeset 16617
- Timestamp:
- 14 Sep 2021, 20:15:15 (3 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/export.py
r16039 r16617 70 70 ['level', 'code', 'level_session'])) + ('student_id', 71 71 'certcode', 'display_fullname', 'matric_number', 'state', 'grade', 72 'total_score' )72 'total_score', 'total_credits') 73 73 74 74 def mangle_value(self, value, name, context=None): … … 80 80 and student is not None: 81 81 value = getattr(student, name, None) 82 if name == 'total_credits': 83 value = context.__parent__.total_credits 82 84 return ExporterBase().mangle_value(value, name, context=context) 83 85 -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py
r16549 r16617 194 194 'automatic,ca,carry_over,code,course_category,credits,dcode,fcode,imported_ts,level,level_session,' 195 195 'mandatory,outstanding,passmark,score,semester,ticket_session,title,student_id,certcode,' 196 'display_fullname,matric_number,state,grade,total_score \r\n'196 'display_fullname,matric_number,state,grade,total_score,total_credits\r\n' 197 197 '1,,1,CRS1,,100,DEP1,FAC1,,100,2012,0,0,100,,2,,Course 1,A111111,CERT1,' 198 '"TESTER, Anna M.",234,created,, \r\n'198 '"TESTER, Anna M.",234,created,,,100\r\n' 199 199 ) 200 200 return
Note: See TracChangeset for help on using the changeset viewer.