I did not use export_to_csv for now... I just test it sometimes ago... But I
guest you should define your .represent for stream table before try to apply
them to your csv output...

Hope it helps.

Richard

On Tue, Apr 5, 2011 at 3:27 AM, Johann Spies <johann.sp...@gmail.com> wrote:

> On 5 April 2011 09:16, Johann Spies <johann.sp...@gmail.com> wrote:
>
>>
>> Thanks!  That solved the problem.  I could not find something in the book
>> about a 'zero option' though.
>>
>>
> Now .represent works on the screen but not in the CSV-output.  I have used:
>
> {{
> import cStringIO
> stream=cStringIO.StringIO()
> rows.export_to_csv_file(stream,represent=True)
> response.headers['Content-Type']='application/vnd.ms-excel'
> response.write(stream.getvalue(), escape=False)
> }}
>
> but putting the option 'represent=True) in there did not make any
> difference.
>
> Regards
> Johann
> --
>  May grace and peace be yours in abundance through the full knowledge of
> God and of Jesus our Lord!  His divine power has given us everything we need
> for life and godliness through the full knowledge of the one who called us
> by his own glory and excellence.
>                                                     2 Pet. 1:2b,3a
>
>
>

Reply via email to