Index: /WAeUP_SRP/trunk/Students.py
===================================================================
--- /WAeUP_SRP/trunk/Students.py	(revision 1719)
+++ /WAeUP_SRP/trunk/Students.py	(revision 1720)
@@ -404,5 +404,5 @@
             catalog_entry['id'] = sid
             tr_count += 1
-            logger.info('%(total)s+%(tr_count)s: Creating Student with ID %(sid)s REG-NO %(jamb_reg_no)s ' % vars())
+            logger.info('%(total)s+%(tr_count)s: Creating Student with ID %(sid)s reg_no %(jamb_reg_no)s ' % vars())
             student = getattr(self,sid)
             student.manage_setLocalRoles(sid, ['Owner',])
@@ -620,5 +620,5 @@
             catalog_entry['id'] = sid
             tr_count += 1
-            logger.info('%(total)s+%(tr_count)s: Creating Student with ID %(sid)s REG-NO %(jamb_reg_no)s ' % vars())
+            logger.info('%(total)s+%(tr_count)s: Creating Student with ID %(sid)s reg_no %(jamb_reg_no)s ' % vars())
             student = getattr(self,sid)
             student.manage_setLocalRoles(sid, ['Owner',])
@@ -646,5 +646,5 @@
             picture ="%s/import/pictures/%s.jpg" % (i_home,jamb_reg_no)
             app.manage_setLocalRoles(sid, ['Owner',])
-            
+
             picture_id = da['jamb_reg_no'].replace('/','_')
             file = None
@@ -655,11 +655,11 @@
                     break
             if file is not None:
-            
-                ## file conversion does not work           
+
+                ## file conversion does not work
                 #img = PIL.Image.open(file)
                 #img.thumbnail((150,200),
                 #              resample=PIL.Image.ANTIALIAS)
                 #outfile = StringIO()
-                #img.save(outfile, format=img.format)            
+                #img.save(outfile, format=img.format)
 
                 outfile = file.read()
Index: /WAeUP_SRP/trunk/WAeUPTool.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPTool.py	(revision 1719)
+++ /WAeUP_SRP/trunk/WAeUPTool.py	(revision 1720)
@@ -48,5 +48,5 @@
         return getattr(object,name)
     return None
-    
+
 class WAeUPTool(UniqueObject, SimpleItem, ActionProviderBase):
     """WAeUP tool"""
@@ -68,5 +68,5 @@
         response.write("%s<br />\r\n" % s)
 
-    security.declareProtected(ModifyPortalContent,'openLog') 
+    security.declareProtected(ModifyPortalContent,'openLog')
     def openLog(self,name):
         """open a log file"""
@@ -79,10 +79,10 @@
         return log
 
-    security.declareProtected(ModifyPortalContent,'writeLog') 
+    security.declareProtected(ModifyPortalContent,'writeLog')
     def writeLog(self,logfile,s):
         """write to the log file"""
         logfile.write(s)
 
-        
+
     def generateStudentId(self,letter): ###(
         import random
@@ -92,9 +92,9 @@
             letter= r.choice('ABCDEFGHKLMNPQRSTUVWXY')
         sid = "%c%d" % (letter,r.randint(99999,1000000))
-##        students = self.portal_url.getPortalObject().campus.students
-##        while hasattr(students, sid):
+        students = self.portal_url.getPortalObject().campus.students
+        while hasattr(students, sid):
+            sid = "%c%d" % (letter,r.randint(99999,1000000))
+##        while self.students_catalog(id = sid):
 ##            sid = "%c%d" % (letter,r.randint(99999,1000000))
-        while self.students_catalog(id = sid):
-            sid = "%c%d" % (letter,r.randint(99999,1000000))
         return sid
     ###)
