# HG changeset patch # User Aurelien Campeas # Date 1337959080 -7200 # Node ID cad2d8e03b330adfc1519b871e5c983969f3e429 # Parent f1b721ca73cc5539df62774c537b2a3878cc3507 [ldapfeed] fix crash on sql cursor usage (closes #2380246) diff -r f1b721ca73cc -r cad2d8e03b33 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,