Index: WAeUP_SRP/base/WAeUPTool.py
===================================================================
--- WAeUP_SRP/base/WAeUPTool.py	(revision 3265)
+++ WAeUP_SRP/base/WAeUPTool.py	(revision 3267)
@@ -1431,5 +1431,6 @@
             return em
         import_source_fn = os.path.split(import_source_path)[1]
-        info['imported_from'] = import_source_fn
+        if not pending_only:
+            info['imported_from'] = import_source_fn
         attrs = csv.reader(open(import_source_path,"rb")).next()
         if "import_mode" not in attrs:
@@ -1508,12 +1509,17 @@
                 error = results[1]
                 mapping = results[2]
+            #
+            # restore some values
+            #
             for k in empty_value_keys:
                 mapping[k] = EMPTY
             if mapping.has_key('sex'):
                 #import pdb;pdb.set_trace()
-                if mapping['sex']:
+                if mapping['sex'] == True:
                     mapping['sex'] = 'F'
-                else:
+                elif mapping['sex'] == False:
                     mapping['sex'] = 'M'
+            if pending_only:
+                info['imported_from'] = item['imported_from']
             data_string = ", ".join("%s: %s" % (k,v) for k,v in mapping.items())
             info['error'] = error
@@ -1572,4 +1578,5 @@
                     logger.info(msg)
         elapse = time.time() - elapse
+        copy2(pending_path,pending_backup)
         copy2(pending_tmp,pending_path)
         msg = "finished importing from %(import_source_fn)s in %(elapse).2f seconds, " % vars()
