Changeset 14442
- Timestamp:
- 23 Jan 2017, 11:08:52 (8 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
r14436 r14442 72 72 fields = tuple(sorted(iface_names( 73 73 ICustomStudentStudyLevel))) + ( 74 'student_id', 'matric_number', 'number_of_tickets','certcode', ' gpa')74 'student_id', 'matric_number', 'number_of_tickets','certcode', 'cgpa') 75 75 76 76 def mangle_value(self, value, name, context=None): … … 80 80 student = context.student 81 81 value = getattr(student, name, None) 82 elif name == 'cgpa': 83 value = context.cumulative_params[0] 82 84 return super( 83 85 CustomStudentStudyLevelExporter, self).mangle_value( -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py
r14436 r14442 143 143 'total_credits_s1,total_credits_s2,' 144 144 'validated_by,validation_date,' 145 'student_id,matric_number,number_of_tickets,certcode, gpa\r\n'145 'student_id,matric_number,number_of_tickets,certcode,cgpa\r\n' 146 146 '0.0,,,100,2012,A,100,,,,,A111111,234,1,CERT1,0.0\r\n' 147 147 )
Note: See TracChangeset for help on using the changeset viewer.