[Mpuls-commits] r5538 - base/trunk/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Nov 4 11:56:40 CET 2011


Author: ludwig
Date: 2011-11-04 11:56:38 +0100 (Fri, 04 Nov 2011)
New Revision: 5538

Modified:
   base/trunk/mpulsweb/lib/export.py
Log:
Issue 2607: Bugfix. Use more defensive programming in fill_from_node.


Modified: base/trunk/mpulsweb/lib/export.py
===================================================================
--- base/trunk/mpulsweb/lib/export.py	2011-11-04 09:45:12 UTC (rev 5537)
+++ base/trunk/mpulsweb/lib/export.py	2011-11-04 10:56:38 UTC (rev 5538)
@@ -165,7 +165,8 @@
                     rows[table_name][name] = child.text
 
         for table_name, row in rows.iteritems():
-            self.tables[table_name].append(row)
+            if table_name in self.tables:
+                self.tables[table_name].append(row)
 
 
 #



More information about the Mpuls-commits mailing list