Index: /WAeUP_SRP/trunk/WAeUPTables.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPTables.py	(revision 2190)
+++ /WAeUP_SRP/trunk/WAeUPTables.py	(revision 2191)
@@ -97,9 +97,14 @@
                 if key == 'lga':
                     v = self.portal_vocabularies.local_gov_areas.get(v)
+                elif key == 'sex':
+                    if v:
+                        v = 'F'
+                    else:
+                        v = 'M'
                 d[key] = v
             else:
                 d[key] = ''
         return d
-    
+
     def addRecord(self, **data): ###(
         # The uid is the same as "bed".
@@ -497,9 +502,9 @@
 
     def searchAndSetRecord(self, uid, student_id,prefix):
-        
-        # The following line must be activated after resetting the 
-        # the portal_pins table. This is to avoid duplicate entries 
+
+        # The following line must be activated after resetting the
+        # the portal_pins table. This is to avoid duplicate entries
         # and disable duplicate payments.
-        
+
         #student_id = student_id.upper()
 
@@ -595,5 +600,5 @@
         WAeUPTable.__init__(self, name)
 
-    
+
 
     security.declareProtected(ModifyPortalContent,"new_importCSV")###(
@@ -640,5 +645,5 @@
             em = 'Error reading %s.csv' % filename
             logger.error(em)
-            return 
+            return
         d = self._import_new(csv_items,schema,layout,mode,logger)
         imported = []
@@ -672,5 +677,5 @@
                 for k in outlist[0].keys():
                     d[k] = k
-                outlist[0] = d 
+                outlist[0] = d
                 outfile = open("file_name_%s" % itype,'w')
                 csv.DictWriter(outfile,outlist[0].keys()).writerows(outlist)
