[Mpuls-commits] r4005 - in base/trunk: . mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Oct 21 13:50:24 CEST 2010
Author: bh
Date: 2010-10-21 13:50:22 +0200 (Thu, 21 Oct 2010)
New Revision: 4005
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/lib/export.py
Log:
* mpulsweb/lib/export.py (CSVContainer.write_zip_file): Add .csv
extension to the filenames in the zip file so that they're
recognized as CSV files by e.g. openoffice and other software.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2010-10-21 09:05:34 UTC (rev 4004)
+++ base/trunk/ChangeLog 2010-10-21 11:50:22 UTC (rev 4005)
@@ -1,3 +1,9 @@
+2010-10-21 Bernhard Herzog <bh at intevation.de>
+
+ * mpulsweb/lib/export.py (CSVContainer.write_zip_file): Add .csv
+ extension to the filenames in the zip file so that they're
+ recognized as CSV files by e.g. openoffice and other software.
+
2010-10-20 Bernhard Herzog <bh at intevation.de>
* mpulsweb/model/case.py (MpulsCaseBundle._exportCSV): Add
Modified: base/trunk/mpulsweb/lib/export.py
===================================================================
--- base/trunk/mpulsweb/lib/export.py 2010-10-21 09:05:34 UTC (rev 4004)
+++ base/trunk/mpulsweb/lib/export.py 2010-10-21 11:50:22 UTC (rev 4005)
@@ -289,10 +289,10 @@
z = zipfile.ZipFile(output, "w", zipfile.ZIP_DEFLATED)
sep = "\t"
- add("master", self.tables["master"].serialize(sep))
+ add("master.csv", self.tables["master"].serialize(sep))
for name, table in self.tables.iteritems():
if name != "master":
- add(name, table.serialize(sep))
+ add(name + '.csv', table.serialize(sep))
More information about the Mpuls-commits
mailing list