[server/sources] use decode_extid in datafeed
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 24 Jul 2015 16:19:39 +0200
changeset 10581 7846d26ff91d
parent 10580 5fbdbbe51867
child 10582 bc2f6f0d7433
[server/sources] use decode_extid in datafeed
server/sources/datafeed.py
--- a/server/sources/datafeed.py	Fri Jul 24 16:15:17 2015 +0200
+++ b/server/sources/datafeed.py	Fri Jul 24 16:19:39 2015 +0200
@@ -23,7 +23,6 @@
 import StringIO
 from os.path import exists
 from datetime import datetime, timedelta
-from base64 import b64decode
 from cookielib import CookieJar
 import urlparse
 from lxml import etree
@@ -282,7 +281,7 @@
         sql = ('SELECT extid, eid, type FROM entities, cw_source_relation '
                'WHERE entities.eid=cw_source_relation.eid_from '
                'AND cw_source_relation.eid_to=%s' % self.eid)
-        return dict((b64decode(uri), (eid, type))
+        return dict((self.decode_extid(uri), (eid, type))
                     for uri, eid, type in cnx.system_sql(sql).fetchall())
 
     def init_import_log(self, cnx, **kwargs):