[Mpuls-commits] r4204 - in base/trunk: . mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Nov 16 20:25:27 CET 2010
Author: bh
Date: 2010-11-16 20:25:26 +0100 (Tue, 16 Nov 2010)
New Revision: 4204
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/lib/export.py
Log:
* mpulsweb/lib/export.py (Export): Move more to be beginning of
the file to start a section with base classes for the export
functionality shared by the XLS and CSV exports.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2010-11-16 19:23:34 UTC (rev 4203)
+++ base/trunk/ChangeLog 2010-11-16 19:25:26 UTC (rev 4204)
@@ -1,5 +1,11 @@
2010-11-16 Bernhard Herzog <bh at intevation.de>
+ * mpulsweb/lib/export.py (Export): Move more to be beginning of
+ the file to start a section with base classes for the export
+ functionality shared by the XLS and CSV exports.
+
+2010-11-16 Bernhard Herzog <bh at intevation.de>
+
* mpulsweb/lib/export.py: Add a comment explaining the
pyExcelerator kludge for writing to a StringIO instance.
(fake_file): Add a doc-string.
Modified: base/trunk/mpulsweb/lib/export.py
===================================================================
--- base/trunk/mpulsweb/lib/export.py 2010-11-16 19:23:34 UTC (rev 4203)
+++ base/trunk/mpulsweb/lib/export.py 2010-11-16 19:25:26 UTC (rev 4204)
@@ -46,7 +46,17 @@
pyExcelerator.CompoundDoc.file = fake_file
+#
+# Export base classes
+#
+class Export:
+
+ pass
+
+
+
+
def to_str(x):
t = type(x)
if t in (IntType, LongType):
@@ -151,11 +161,7 @@
self.workbook.save(fname)
-class Export:
- pass
-
-
class XLSExport(Export):
def __init__(self, tree, selection):
More information about the Mpuls-commits
mailing list