Index: WAeUP_SRP/base/WAeUPTool.py
===================================================================
--- WAeUP_SRP/base/WAeUPTool.py	(revision 3196)
+++ WAeUP_SRP/base/WAeUPTool.py	(revision 3198)
@@ -58,4 +58,5 @@
 i_home = INSTANCE_HOME
 images_base = os.path.join(i_home,"images")
+EMPTY = 'XXX'
 
 def getImagesDir(student_id):
@@ -858,4 +859,8 @@
         students_folder = self.portal_url.getPortalObject().campus.students
         logger = logging.getLogger('WAeUPTool.admitOneStudent')
+        res = self.students_catalog(jamb_reg_no = brain.reg_no)
+        if res:
+            logger.info('student with this reg_no already exists %s with id %s' % (brain.reg_no,res[0].id))
+            return
         if brain.status != "admitted":
             logger.info('status of %s is %s' % (brain.reg_no,brain.status))
@@ -1464,6 +1469,10 @@
         for record in items:
             item = {}
+            empty_value_keys = []
             for k,v in record.items():
                 if v:
+                    if v == EMPTY:
+                        empty_value_keys += k,
+                        v = ''
                     item[k.strip()] = v.strip()
             count += 1
@@ -1503,4 +1512,6 @@
                 error = results[1]
                 mapping = results[2]
+            for k in empty_value_keys:
+                mapping[k] = EMPTY
             if mapping.has_key('sex'):
                 #import pdb;pdb.set_trace()
