From 4fc096ac5a52259d082dad348347d7aa98a3778c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 28 Jan 2013 21:59:14 +0100 Subject: [PATCH] export all active fields in csv --- extra/modules/boresults.ptl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extra/modules/boresults.ptl b/extra/modules/boresults.ptl index 5240d90..c9e001c 100644 --- a/extra/modules/boresults.ptl +++ b/extra/modules/boresults.ptl @@ -40,6 +40,12 @@ class FakeField: # just here to quack like a duck return None + def get_csv_heading(self): + return [self.label] + + def get_csv_value(self, element): + return [element] + class FormResultDirectory(FormPage): _q_exports = ['', 'csv', 'xls', 'participation', 'table', 'list'] @@ -73,7 +79,7 @@ class FormResultDirectory(FormPage): ''