def create_particpation_for_student(self, student):
        """Für einen gegebenen Studenten einen neuen Teilnahme anlegen."""
        with ParticipationMapper() as mapper:
            if student is not None:
                participation = Participation()
                participation.set_student_id(student.get_id())
                participation.set_id(1)

                return mapper.insert(participation)
            else:
                return None
    def create_participation(self, module_id, project_id, student_id):
        """Teilnahme erstellen"""

        participation = Participation()
        participation.set_module_id(module_id)
        participation.set_project_id(project_id)
        participation.set_student_id(student_id)
        participation.set_id(1)

        with ParticipationMapper() as mapper:
            return mapper.insert(participation)