Index: /main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py	(revision 9479)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py	(revision 9480)
@@ -103,4 +103,12 @@
         return kofa_utils.fullname(self.firstname, self.lastname, middlename)
 
+    def _setStudyCourseAttributes(self, studycourse):
+        studycourse.entry_mode = self.course_admitted.study_mode
+        studycourse.current_level = self.course_admitted.start_level
+        studycourse.certificate = self.course_admitted
+        studycourse.entry_session = self.__parent__.year
+        studycourse.current_session = self.__parent__.year
+        return
+
     def createStudent(self, view=None):
         """Create a student, fill with base data, create an application slip
@@ -142,10 +150,6 @@
         # Set password
         IUserAccount(student).setPassword(self.application_number)
-        # Save the certificate and set session attributes
-        student['studycourse'].certificate = self.course_admitted
-        student['studycourse'].entry_mode = self.course_admitted.study_mode
-        student['studycourse'].entry_session = self.__parent__.year
-        student['studycourse'].current_session = self.__parent__.year
-        student['studycourse'].current_level = self.course_admitted.start_level
+        # Save the certificate and set study course attributes
+        self._setStudyCourseAttributes(student['studycourse'])
         self._copyPassportImage(student)
         # Update the catalog
