Esempio n. 1
0
def _makeCSVstr(object_list):
    table = Results.to_pretty_table(object_list)
    CSVstr = cStringIO.StringIO()
    writer = csv.writer(CSVstr)
    writer.writerows(table)
    CSVstr.seek(0)
    return CSVstr
Esempio n. 2
0
File: views.py Progetto: aidjek/TS
def _makeCSVstr(object_list):
    table = Results.to_pretty_table(object_list)
    CSVstr = cStringIO.StringIO()
    writer = csv.writer(CSVstr)
    writer.writerows(table)
    CSVstr.seek(0)
    return CSVstr