I think the import button should have a delimiter field makes things easier.
On Thursday, 12 March 2009 00:08:27 UTC+8, mdipierro wrote: > > There is no configuration parameter to do so. You mat create your own > csv serializer. look into the python csv module. > > On Mar 11, 10:01 am, Marco Prosperi <marcoprosperi...@gmail.com> > wrote: > > hello everybody, > > how can I change the following function (defined in appadmin.py > > controller) so that the downloaded file has tab separated values > > instead of comma separated? Or do I have to change some settings > > somewhere? > > > > thanks in advance, > > Marco > > > > def csv(): > > import gluon.contenttype > > response.headers['Content-Type'] = \ > > gluon.contenttype.contenttype('.csv') > > db = get_database(request) > > query = get_query(request) > > if not query: > > return None > > response.headers['Content-disposition'] = \ > > 'attachment; filename=%s_%s.csv'\ > > % tuple(request.vars.query.split('.')[:2]) > > return str(db(query).select()) --