Index: /WAeUP_SRP/trunk/WAeUPImport.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPImport.py	(revision 5231)
+++ /WAeUP_SRP/trunk/WAeUPImport.py	(revision 5232)
@@ -1144,4 +1144,16 @@
                 msg = "no valid transition provided"
                 break     
+            if transition:
+                #import pdb;pdb.set_trace()
+                try:
+                    self.portal_workflow.doActionFor(student_obj,transition)
+                except:
+                    msg = "reg_transition not allowed"
+                    break
+            elif change_reg_state:
+                msg = self.waeup_tool.changeStudentState(student_obj, change_reg_state)   
+                if msg:
+                    break             
+                
             while d['session'] and d['verdict'] and current_level:
                 sub_obj = getattr(student_obj,'study_course',None)
@@ -1193,12 +1205,4 @@
                         except:
                             pass
-            if transition:
-                #import pdb;pdb.set_trace()
-                try:
-                    self.portal_workflow.doActionFor(student_obj,transition)
-                except:
-                    msg = "reg_transition not allowed"
-            elif change_reg_state:
-                msg = self.waeup_tool.changeStudentState(student_obj, change_reg_state)
              
             if password:
