[web2py] Re: changing export_to_csv( )'s default behaviour

2011-03-04 Thread Eduardo
Thank you very much, Anthony. Your explanation and solution was exactly what I needed. Eduardo On 4 mar, 00:23, Anthony wrote: > On Thursday, March 3, 2011 1:19:14 PM UTC-5, Eduardo wrote: > > > Thank you all. Editing appadmin will do. I am, however, having a hard > > time identifying export_to_

[web2py] Re: changing export_to_csv( )'s default behaviour

2011-03-03 Thread Anthony
On Thursday, March 3, 2011 1:19:14 PM UTC-5, Eduardo wrote: > > Thank you all. Editing appadmin will do. I am, however, having a hard > time identifying export_to_csv( ) either in views/appadmin.html or > appadmin.py. While import_from_csv is clearly called from within > appadmin.import_csv, I

[web2py] Re: changing export_to_csv( )'s default behaviour

2011-03-03 Thread Eduardo
Thank you all. Editing appadmin will do. I am, however, having a hard time identifying export_to_csv( ) either in views/appadmin.html or appadmin.py. While import_from_csv is clearly called from within appadmin.import_csv, I am unable to identify how export_to_csv is called there. Thanks for your

[web2py] Re: changing export_to_csv( )'s default behaviour

2011-03-03 Thread pbreit
I would think it'd at least be possible to edit the code directly if not subclass/override it? Is that a problem because other components depend on its default behavior?

[web2py] Re: changing export_to_csv( )'s default behaviour

2011-03-03 Thread Massimo Di Pierro
You cannot change the default bahavior. You need to call these functions yourself in your code with the delimiter argument. You can also edit the appadmin.py in your app. On Mar 3, 10:33 am, Eduardo wrote: > Hi, > > What function in what file should I modify to change the default > behaviour of b

[web2py] Re: changing export_to_csv( )'s default behaviour

2011-03-03 Thread pbreit
I think you can pass in the delimiter: export_to_csv(delimiter = ',', quotechar = '"', quoting = csv.QUOTE_MINIMAL)