Merge pull request #1766 from abastardi/tsv_export

Fix grid TSV export bug
This commit is contained in:
mdipierro
2017-09-21 00:23:17 -05:00
committed by GitHub

View File

@@ -3570,7 +3570,9 @@ class ExportClass(object):
if not self.rows.db._adapter.REGEX_TABLE_DOT_FIELD.match(col):
row.append(record._extra[col])
else:
(t, f) = col.split('.')
# The grid code modifies rows.colnames, adding double quotes
# around the table and field names -- so they must be removed here.
(t, f) = [name.strip('"') for name in col.split('.')]
field = self.rows.db[t][f]
if isinstance(record.get(t, None), (Row, dict)):
value = record[t][f]