[web2py] export csv

2012-03-14 Thread Richard
Hello, I strungle with export of csv... I have this function that works great : def export_csv(tab1_id): import gluon.contenttype response.headers['Content-Type'] = \ gluon.contenttype.contenttype('.csv') import cStringIO stream=cStringIO.StringIO() db((db.tab1.id == t

[web2py] Export CSV

2012-02-03 Thread Omi Chiba
I want to export the specific table data to csv. I tried the code after appadmin but I got a "TypeError: 'str' object is not callable" error. Can you guys help ? I also want to export the csv file with " " for characters. Model -- db.define_table('IQWAGFTY', Field('TYPRCD