From eb675ad3f30b53520de58d309a24c3c77706ae58 Mon Sep 17 00:00:00 2001 From: Alin Voinea Date: Mon, 10 Dec 2012 12:22:10 +0200 Subject: [PATCH] Refs #10168 - Fix download CSV method. --- docs/HISTORY.txt | 4 ++-- eea/app/visualization/browser/app/download.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/HISTORY.txt b/docs/HISTORY.txt index e39b860..67afb2b 100644 --- a/docs/HISTORY.txt +++ b/docs/HISTORY.txt @@ -9,9 +9,9 @@ Changelog visualizations [voineali refs #9572] * Feature: Support non-ASCII datasets (column headers and body) - [voineali refs #9610] + [voineali refs #9610, #10168] * Bug fix: Fixed download.(csv, tsv, html) methods for non-ASCII data - [voineali refs #9610] + [voineali refs #9610, #10168] * Change: Move column label settings from facet annotations directly to JSON [voineali refs $9610] * Feature: On saving a chart, copy the generic chart image in the visualization diff --git a/eea/app/visualization/browser/app/download.py b/eea/app/visualization/browser/app/download.py index 6fcf284..dc8b648 100644 --- a/eea/app/visualization/browser/app/download.py +++ b/eea/app/visualization/browser/app/download.py @@ -126,7 +126,8 @@ def csv(self, dialect='excel', attachment=True): output = self.request.response else: output = StringIO() - writter = csv.writer(output, dialect=dialect) + + writter = csv.writer(output, dialect=dialect) row = [] headers = self.headers