[ldapfeed] fix crash on sql cursor usage (closes #2380246)
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 25 May 2012 17:18:00 +0200
changeset 8429 cad2d8e03b33
parent 8428 f1b721ca73cc
child 8430 5bee87a14bb1
[ldapfeed] fix crash on sql cursor usage (closes #2380246)
server/sources/datafeed.py
--- a/server/sources/datafeed.py	Fri May 25 16:51:24 2012 +0200
+++ b/server/sources/datafeed.py	Fri May 25 17:18:00 2012 +0200
@@ -270,7 +270,7 @@
                'WHERE entities.eid=cw_source_relation.eid_from '
                'AND cw_source_relation.eid_to=%s' % self.eid)
         return dict((b64decode(uri), (eid, type))
-                    for uri, eid, type in session.system_sql(sql))
+                    for uri, eid, type in session.system_sql(sql).fetchall())
 
     def init_import_log(self, session, **kwargs):
         dataimport = session.create_entity('CWDataImport', cw_import_of=self,