Index: WAeUP_SRP/trunk/WAeUPTool.py
===================================================================
--- WAeUP_SRP/trunk/WAeUPTool.py	(revision 1899)
+++ WAeUP_SRP/trunk/WAeUPTool.py	(revision 1900)
@@ -1,3 +1,3 @@
-#-*- mode: python; mode: fold -*-
+3#-*- mode: python; mode: fold -*-
 # (C) Copyright 2005 The WAeUP group  <http://www.waeup.org>
 # Author: Joachim Schmitz (js@aixtraware.de)
@@ -261,6 +261,4 @@
         students_folder.invokeFactory('Student', sid)
         student_obj = getattr(students_folder,sid)
-        password = self.generatePassword()
-        self.makeStudentMember(sid,password)
         f2t = self.student_field2types
         #from pdb import set_trace; set_trace()
@@ -269,10 +267,16 @@
         if dict.get('sex'):
             d['jamb_sex']  = 'F'
+            
         entry_session = dict.get('entry_session')
-        wfaction = 'return'
-        wft = 'wf_transition_returning'
-        if entry_session == self.getSessionId():
+        if entry_session == self.getSessionId()[-2:]:
             wfaction = 'admit'
             wft = 'wf_transition_admitted'
+            password = None
+        else:    
+            wfaction = 'return'
+            wft = 'wf_transition_returning'
+            password = self.generatePassword()
+            self.makeStudentMember(sid,password)            
+            
         for pt in f2t.keys():
             student_obj.invokeFactory(pt,f2t[pt]['id'])
Index: WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py	(revision 1899)
+++ WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py	(revision 1900)
@@ -53,6 +53,9 @@
 #    return None
 
-res = results(matric_no = matric_no)
-results = res
+if matric_no:
+    res = results(matric_no = matric_no)
+    results = res
+else: 
+    results = []
 
 
