Index: /main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/export.py
===================================================================
--- /main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/export.py	(revision 17996)
+++ /main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/export.py	(revision 17997)
@@ -18,4 +18,5 @@
 """Exporters for student related stuff.
 """
+from waeup.kofa.students.export import DataForLecturerExporter
 from kofacustom.unidel.students.interfaces import (
     ICustomStudent,
@@ -74,2 +75,31 @@
             'student_id','state','current_session')
 
+class CustomDataForLecturerExporter(DataForLecturerExporter):
+    """The Data for Lecturer Exporter searches for students in the course
+    tickets catalog and exports those course tickets which belong to the
+    given course code, meet level and session passed through at the
+    same time, and which are editable by lecturers (disabled on 10/03/21).
+    This exporter can only be called at course level in the academic section.
+    """
+
+    fields = ('matric_number', 'student_id', 'display_fullname',
+              'faccode', 'certcode', 'state',
+              'level', 'code', 'level_session', 'score')
+
+    def mangle_value(self, value, name, context=None):
+        """The mangler determines the student's id and fullname.
+        """
+        if context is not None:
+            student = context.student
+            if name in ('matric_number',
+                        'reg_number',
+                        'student_id',
+                        'display_fullname',
+                        'faccode',
+                        'certcode',
+                        'state',) and student is not None:
+                value = getattr(student, name, None)
+        return super(
+            DataForLecturerExporter, self).mangle_value(
+            value, name, context=context)
+
