Index: /WAeUP_SRP/trunk/WAeUPTool.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPTool.py	(revision 1904)
+++ /WAeUP_SRP/trunk/WAeUPTool.py	(revision 1905)
@@ -919,6 +919,14 @@
                         sub_doc.edit(mapping = d)
 
+
+        # included only to change wf state from admitted to returning
+            new_state = f2t[pt]['wf_transition_returning']
+            if new_state != "remain":
+                try:
+                    self.portal_workflow.doActionFor(sub_obj,new_state,dest_container=sub_obj)
+                except:
+                    pass
         wfaction = 'return'
-        try: 
+        try:
             self.portal_workflow.doActionFor(student_obj,wfaction)
             logger.info('%s, wf state changed' % sid)
@@ -926,4 +934,6 @@
         except:
             pass
+        # end inclusion
+
 
         if any_change:
@@ -932,6 +942,6 @@
             return sid,'not modified'
     ###)
-    
-    
+
+
     security.declareProtected(ModifyPortalContent,"importData")###(
     def importData(self,filename,name,edit=False):
