CSV export: quote string fields
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3566 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
a2c2eed300
commit
0bb7071829
1 changed files with 2 additions and 1 deletions
|
@ -147,7 +147,8 @@ class RegistrationsExportCsv(BaseView):
|
|||
method = getattr(self, methodName, self.getData)
|
||||
output = StringIO()
|
||||
try:
|
||||
csv.writer(output, dialect='excel', delimiter=';').writerows(method())
|
||||
csv.writer(output, dialect='excel', delimiter=';',
|
||||
quoting=csv.QUOTE_NONNUMERIC).writerows(method())
|
||||
except:
|
||||
import traceback; traceback.print_exc()
|
||||
raise
|
||||
|
|
Loading…
Add table
Reference in a new issue