Any ideas please! *****************************************************
On 1 май, 00:20, cyber <vlad.mul...@gmail.com> wrote: > hi everyone! > > I need a help/hint/advase again. > > I have a code in the controller: > results=db((db.autos.dt>=t1) & > (db.autos.dt<=t2)).select(orderby=~db.autos.dt) > export = csv.writer(open('export.csv', 'wb'), delimiter=' ', > quotechar='|', quoting=csv.QUOTE_MINIMAL) > for r in results: > export.writerow([r.id] + [r.num] + [r.ves] + [r.dt] + [r.usr]) > > I want to export search results to csv file. But in this case > export.csv file is created automaticly. > And I want users to choose file name and destination folder. How to > settle the matter? > > And another problem is: all results are wrote in a one cell. Is there > a way to write each db.table.field value in one row but into each cell?