# HG changeset patch # User RĂ©mi Cardona # Date 1427893605 -7200 # Node ID bfe33b5710d11bd6ac7fdb20bab9821013bb0d70 # Parent 4f3b6dad5084bad8131c1fdd382d23396f37ec1b [web/views] Allow changing CSVView's separator (closes #5227442) diff -r 4f3b6dad5084 -r bfe33b5710d1 web/views/baseviews.py --- a/web/views/baseviews.py Thu Apr 16 18:59:12 2015 +0200 +++ b/web/views/baseviews.py Wed Apr 01 15:06:45 2015 +0200 @@ -422,6 +422,7 @@ """ __regid__ = 'csv' redirect_vid = 'incontext' + separator = u', ' def call(self, subvid=None, **kwargs): kwargs['vid'] = subvid @@ -429,7 +430,7 @@ for i in xrange(len(rset)): self.cell_call(i, 0, **kwargs) if i < rset.rowcount-1: - self.w(u", ") + self.w(self.separator) # XXX to be documented views ###################################################