Index: /main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/export.py
===================================================================
--- /main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/export.py	(revision 14885)
+++ /main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/export.py	(revision 14886)
@@ -18,4 +18,5 @@
 """Exporters for student related stuff.
 """
+from waeup.kofa.utils.batching import ExporterBase
 from kofacustom.dspg.students.interfaces import (
     ICustomStudent,
@@ -46,5 +47,14 @@
 
     fields = tuple(
-        sorted(iface_names(ICustomStudentStudyCourse))) + ('student_id',)
+        sorted(iface_names(ICustomStudentStudyCourse))) + (
+            'student_id', 'current_mode')
+
+    def mangle_value(self, value, name, context=None):
+        if name == 'certificate' and value is not None:
+            value = value.code
+        if name in ('student_id', 'current_mode') and context is not None:
+            student = context.student
+            value = getattr(student, name, None)
+        return ExporterBase().mangle_value(value, name, context=context)
 
 class CustomStudentStudyLevelExporter(NigeriaStudentStudyLevelExporter):
