There are a few issues here. if the browser asks for a download name depends on the browser settings, not the server code. you can only propose a name to the browser
response.headers['Content-Disposition''='attachment; filename=myfile.csv' You do not need a view unless you return a dict(). On Apr 10, 6:02 pm, Johann Spies <[email protected]> wrote: > On 11 April 2010 00:38, mdipierro <[email protected]> wrote: > > > One thing I see is that > > > db(request.vars.query).select(db.sarua.All,limitby(1,250)).export_to_csv_file(s) > > > should be > > > db(request.vars.query).select(db.sarua.ALL,limitby=(0,250)).export_to_csv_file(s) > > Thanks. That was careless typing from my side. > > But the correction does not cause the user to be asked for a filename > to download. > > There is no view with the name ' csv'. Is it necessary to have one? > What should be in there? > > Regards > Johann > > -- > "Finally, brethren, whatsoever things are true, whatsoever things are > honest, whatsoever things are just, whatsoever things are pure, > whatsoever things are lovely, whatsoever things are of good report; if > there be any virtue, and if there be any praise, think on these > things." Philippians 4:8 -- To unsubscribe, reply using "remove me" as the subject.

