db(db.person).select().column('name'), thanks Anthony

This commit is contained in:
mdipierro
2014-05-26 22:26:59 -05:00
parent 35c21044bb
commit e66f201191
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.9.5-trunk+timestamp.2014.05.16.22.42.19
Version 2.9.5-trunk+timestamp.2014.05.26.22.25.23
+3
View File
@@ -10979,6 +10979,9 @@ class Rows(object):
self.export_to_csv_file(s)
return s.getvalue()
def column(self, column=None):
return [r[str(column) if column else self.colnames[0]] for r in self]
def first(self):
if not self.records:
return None