colnames in grid, thanks Niphlod, Arnon, and Paolo

This commit is contained in:
mdipierro
2013-11-22 08:38:12 -06:00
parent 054152f162
commit 5f1caf668b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.7.4-stable+timestamp.2013.11.20.10.23.24
Version 2.7.4-stable+timestamp.2013.11.22.08.37.15
+1 -1
View File
@@ -8355,7 +8355,7 @@ def index():
# first item is always the field name according to Python Database API specs
columns = adapter.cursor.description
# reduce the column info down to just the field names
fields = [f[0] for f in columns]
fields = colnames or [f[0] for f in columns]
# will hold our finished resultset in a list
data = adapter._fetchall()
# convert the list for each row into a dictionary so it's