Mercurial > p > roundup > code
diff roundup/cgi/actions.py @ 3987:c4f7b3817d3d
Prevent broken pipe errors in csv export (patch [SF#911449)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 07 Aug 2008 06:33:00 +0000 |
| parents | 00896a2acaa5 |
| children | 0112e9e1d068 |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Thu Aug 07 06:31:16 2008 +0000 +++ b/roundup/cgi/actions.py Thu Aug 07 06:33:00 2008 +0000 @@ -1,4 +1,4 @@ -#$Id: actions.py,v 1.71 2007-09-20 23:44:58 jpend Exp $ +#$Id: actions.py,v 1.72 2008-08-07 06:33:00 richard Exp $ import re, cgi, StringIO, urllib, Cookie, time, random, csv, codecs @@ -998,11 +998,11 @@ self.client.STORAGE_CHARSET, self.client.charset, 'replace') writer = csv.writer(wfile) - writer.writerow(columns) + self.client._socket_op(writer.writerow, columns) # and search for itemid in klass.filter(matches, filterspec, sort, group): - writer.writerow([str(klass.get(itemid, col)) for col in columns]) + self.client._socket_op(writer.writerow, [str(klass.get(itemid, col)) for col in columns]) return '\n'
