Changeset 14886
- Timestamp:
- 1 Nov 2017, 12:21:13 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/export.py
r14716 r14886 18 18 """Exporters for student related stuff. 19 19 """ 20 from waeup.kofa.utils.batching import ExporterBase 20 21 from kofacustom.dspg.students.interfaces import ( 21 22 ICustomStudent, … … 46 47 47 48 fields = tuple( 48 sorted(iface_names(ICustomStudentStudyCourse))) + ('student_id',) 49 sorted(iface_names(ICustomStudentStudyCourse))) + ( 50 'student_id', 'current_mode') 51 52 def mangle_value(self, value, name, context=None): 53 if name == 'certificate' and value is not None: 54 value = value.code 55 if name in ('student_id', 'current_mode') and context is not None: 56 student = context.student 57 value = getattr(student, name, None) 58 return ExporterBase().mangle_value(value, name, context=context) 49 59 50 60 class CustomStudentStudyLevelExporter(NigeriaStudentStudyLevelExporter):
Note: See TracChangeset for help on using the changeset viewer.