Skip to content

Commit f8ec122

Browse files
author
Richard Jones
committed
Prevent broken pipe errors in csv export (patch [SF#911449)
1 parent e84e8c4 commit f8ec122

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Fixed:
1616
- More improvements to German translation (sf #1919446)
1717
- Add filter() to XML-RPC interface (sf patch #1966456)
1818
- Fix indexerror when there are no messages to an issue (sf patch #1894249)
19+
- Prevent broken pipe errors in csv export (sf patch #1911449)
1920

2021

2122
2008-03-01 1.4.4

roundup/cgi/actions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: actions.py,v 1.71 2007-09-20 23:44:58 jpend Exp $
1+
#$Id: actions.py,v 1.72 2008-08-07 06:33:00 richard Exp $
22

33
import re, cgi, StringIO, urllib, Cookie, time, random, csv, codecs
44

@@ -998,11 +998,11 @@ def handle(self):
998998
self.client.STORAGE_CHARSET, self.client.charset, 'replace')
999999

10001000
writer = csv.writer(wfile)
1001-
writer.writerow(columns)
1001+
self.client._socket_op(writer.writerow, columns)
10021002

10031003
# and search
10041004
for itemid in klass.filter(matches, filterspec, sort, group):
1005-
writer.writerow([str(klass.get(itemid, col)) for col in columns])
1005+
self.client._socket_op(writer.writerow, [str(klass.get(itemid, col)) for col in columns])
10061006

10071007
return '\n'
10081008

0 commit comments

Comments
 (0)