[Mpuls-commits] r2517 - wasko/branches/2.0/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Apr 26 12:55:23 CEST 2010


Author: torsten
Date: 2010-04-26 12:55:22 +0200 (Mon, 26 Apr 2010)
New Revision: 2517

Added:
   wasko/branches/2.0/mpulsweb/lib/export.py
Log:
* mpulsweb/lib/export.py (Export): New dummy class to export CSV and
	XLS.


Added: wasko/branches/2.0/mpulsweb/lib/export.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/export.py	2010-04-26 10:52:39 UTC (rev 2516)
+++ wasko/branches/2.0/mpulsweb/lib/export.py	2010-04-26 10:55:22 UTC (rev 2517)
@@ -0,0 +1,28 @@
+import logging
+import pyExcelerator
+
+log = logging.getLogger(__name__)
+
+class Export:
+    pass
+
+class XLSExport(Export):
+
+    def __init__(self):
+        self.workbook  = pyExcelerator.Workbook()
+
+    def export(self, xmltree):
+        for item in xmltree:
+            log.debug(item)
+        return "Test XLS"
+
+class CSVExport(Export):
+
+    def __init__(self):
+        self.csv = "" 
+
+    def export(self, xmltree):
+        for item in xmltree:
+            log.debug(item)
+        return "Test CSV"
+        



More information about the Mpuls-commits mailing list