[11.0][MIG] base_external_dbsource_sqlite: Migration to v11.0

[UPD] README.rst

[UPD] Update base_external_dbsource_sqlite.pot
This commit is contained in:
Sergio Teruel Albert
2018-06-27 13:10:53 +02:00
committed by Andrea Cattalani
parent 41a2109f8e
commit 0df90603ae
15 changed files with 548 additions and 35 deletions

View File

@@ -1,3 +1 @@
# -*- coding: utf-8 -*-
from . import base_external_dbsource

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2011 Daniel Reis
# Copyright 2016 LasLabs Inc.
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
@@ -54,6 +53,6 @@ class BaseExternalDbsource(models.Model):
with record.connection_open() as connection:
cur = connection.execute(sqlquery, sqlparams)
if metadata:
cols = cur.keys()
cols = list(cur.keys())
rows = [r for r in cur]
return rows, cols