In view:
<a href="{{=URL('download_all')}}">download all</a>
In controller
def download_all():
import tempfile
tmp = tempfile.TemporaryFile()
db.export_to_csv_file(tmp)
tmp.seek(0)
return response.stream(tmp)
On Sunday, 29 July 2012 03:07:40 UTC-5, Hassan Alnatour wrote:
>
> Dear ALL,
>
> How can i make a button that lets the user download a scv file for on of
> my tables ?
>
>
> best regards,
>
--

