some where you have a Field(...,represent=something) and something takes two arguments, not one. Can you show us the model?
On Friday, 16 November 2012 08:51:32 UTC-6, www.diazluis.com wrote: > > {{ > import cStringIO > stream=cStringIO.StringIO() > estudiante_arancel_rows.export_to_csv_file(ofile=stream, represent=True) > response.headers['Content-Type']='application/vnd.ms-excel' > response.headers['Content-Disposition'] = "attachment; filename=%s" % > 'data_sga.csv' > response.write(stream.getvalue(), escape=False) > }} > > > Traceback (most recent call last): > File "/home/diazluis2007/web2py/gluon/restricted.py", line 212, in > restricted > exec ccode in environment > File > "/home/diazluis2007/web2py/applications/sga/views/estudiante_arancel/exportar_excel.html", > > line 3, in <module> > stream=cStringIO.StringIO() > File "/home/diazluis2007/web2py/gluon/dal.py", line 9249, in > export_to_csv_file > value = field.represent(value) > TypeError: <lambda>() takes exactly 2 arguments (1 given) > > web2py: 2.2.1 > --