[ccplugin] Fix retrieval of the external UID file
authorDimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
Wed, 17 Jul 2013 13:16:01 +0200
changeset 293 7b637a322eb2
parent 292 bb11a190f109
child 294 2a9b2a5acf8e
[ccplugin] Fix retrieval of the external UID file
ccplugin.py
--- a/ccplugin.py	Wed Jul 17 13:15:34 2013 +0200
+++ b/ccplugin.py	Wed Jul 17 13:16:01 2013 +0200
@@ -95,7 +95,7 @@
     with csvf:
         dialect = csv.Sniffer().sniff(csvf.readline())
         csvf.seek(0)
-        return dict((row for row in csv.reader(csvf, dialect)))
+        return dict(([unicode(x) for x in row] for row in csv.reader(csvf, dialect)))
 
 
 
@@ -151,7 +151,7 @@
             log = self.config.log
             delete = self.config.delete
             if self.config.external_uids:
-                csv_filename = self.config.external_uids[0]
+                csv_filename = self.config.external_uids
                 ids_uids = get_ids_uids_from_csv(csv_filename, logger)
             if log:
                 log_file = logging.FileHandler(appid + '.log')