Changeset 15336
- Timestamp:
- 28 Feb 2019, 06:46:07 (6 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
r14701 r15336 68 68 fields = tuple(sorted(iface_names(ICustomCourseTicket) + 69 69 ['level', 'code', 'level_session'])) + ('student_id', 70 'certcode', 'display_fullname', 'matric_number' )70 'certcode', 'display_fullname', 'matric_number', 'state') 71 71 72 72 def mangle_value(self, value, name, context=None): … … 75 75 if context is not None: 76 76 student = context.student 77 if name in ('student_id', 'display_fullname', 'matric_number' ) \77 if name in ('student_id', 'display_fullname', 'matric_number', 'state') \ 78 78 and student is not None: 79 79 value = getattr(student, name, None) -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py
r15226 r15336 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 \r\n'196 'display_fullname,matric_number,state\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 \r\n'198 '"TESTER, Anna M.",234,created\r\n' 199 199 ) 200 200 return
Note: See TracChangeset for help on using the changeset viewer.