Fix grid TSV export bug
This commit is contained in:
+3
-1
@@ -3570,7 +3570,9 @@ class ExportClass(object):
|
|||||||
if not self.rows.db._adapter.REGEX_TABLE_DOT_FIELD.match(col):
|
if not self.rows.db._adapter.REGEX_TABLE_DOT_FIELD.match(col):
|
||||||
row.append(record._extra[col])
|
row.append(record._extra[col])
|
||||||
else:
|
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]
|
field = self.rows.db[t][f]
|
||||||
if isinstance(record.get(t, None), (Row, dict)):
|
if isinstance(record.get(t, None), (Row, dict)):
|
||||||
value = record[t][f]
|
value = record[t][f]
|
||||||
|
|||||||
Reference in New Issue
Block a user