[Formed-commits] r338 - in trunk: . formed/formed/plugins/export

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 7 12:00:50 CEST 2009


Author: teichmann
Date: 2009-10-07 12:00:49 +0200 (Wed, 07 Oct 2009)
New Revision: 338

Modified:
   trunk/ChangeLog
   trunk/formed/formed/plugins/export/html.py
   trunk/formed/formed/plugins/export/html2.py
   trunk/formed/formed/plugins/export/latex.py
Log:
Adjusted to cope with "semi-complete" implementation of logbook tree structure.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-06-18 12:15:49 UTC (rev 337)
+++ trunk/ChangeLog	2009-10-07 10:00:49 UTC (rev 338)
@@ -1,3 +1,9 @@
+2009-10-07	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/html.py, formed/formed/plugins/export/latex.py,
+	formed/formed/plugins/export/html2.py: Adjusted to cope with
+	"semi-complete" implementation of logbook tree structure.
+
 2009-06-18	Torsten Irländer <torsten.irlaender at intevation.de>
 
 	* formed/formed/plugins/export/new_sql.py,

Modified: trunk/formed/formed/plugins/export/html.py
===================================================================
--- trunk/formed/formed/plugins/export/html.py	2009-06-18 12:15:49 UTC (rev 337)
+++ trunk/formed/formed/plugins/export/html.py	2009-10-07 10:00:49 UTC (rev 338)
@@ -191,7 +191,7 @@
 
     def doExport(self, path, main, dummy):
         document = main.getDocument()
-        root     = document.root
+        root     = document.getCase()
         mode     = main.getSelectedMode()
         allModes = main.getAllModes()
         out      = None

Modified: trunk/formed/formed/plugins/export/html2.py
===================================================================
--- trunk/formed/formed/plugins/export/html2.py	2009-06-18 12:15:49 UTC (rev 337)
+++ trunk/formed/formed/plugins/export/html2.py	2009-10-07 10:00:49 UTC (rev 338)
@@ -18,6 +18,7 @@
 from formed.model.misc import ModeChecker, checkMode
 
 import codecs
+import sys
 from   cgi import escape
 
 HTML_HEADER = u'''
@@ -103,6 +104,7 @@
 
     @checkMode
     def _exportRecursiveAsHTML(self, node, out):
+
         for nc in node.children:
             if isinstance(nc, data.GroupNode):
                 self._matchGroup(nc,out)
@@ -156,7 +158,7 @@
 
     def doExport(self, path, main, dummy):
         document = main.getDocument()
-        root     = document.root
+        root     = document.getCase()
         mode     = main.getSelectedMode()
         allModes = main.getAllModes()
         out      = None

Modified: trunk/formed/formed/plugins/export/latex.py
===================================================================
--- trunk/formed/formed/plugins/export/latex.py	2009-06-18 12:15:49 UTC (rev 337)
+++ trunk/formed/formed/plugins/export/latex.py	2009-10-07 10:00:49 UTC (rev 338)
@@ -217,7 +217,7 @@
 
     def doExport(self, path, main, dummy):
         document = main.getDocument()
-        root     = document.root
+        root     = document.getCase()
         mode     = main.getSelectedMode()
         allModes = main.getAllModes()
         out      = None



More information about the Formed-commits mailing list