diff src/tools/xml_tools.py @ 660:69a8bfd266a5

core, plugins: fixed bad use of children instead of elements() for domish.Element instances.
author Goffi <goffi@goffi.org>
date Tue, 15 Oct 2013 19:28:34 +0200
parents 56f8a9c99194
children 969562c4761b
line wrap: on
line diff
--- a/src/tools/xml_tools.py	Mon Oct 07 13:09:57 2013 +0200
+++ b/src/tools/xml_tools.py	Tue Oct 15 19:28:34 2013 +0200
@@ -75,7 +75,7 @@
     except StopIteration:
         raise exceptions.DataError("Couldn't find expected <reported> tag")
 
-    for elt in reported_elt.children:
+    for elt in reported_elt.elements():
         if elt.name != "field":
             raise exceptions.DataError("Unexpected tag")
         name = elt["var"]
@@ -90,7 +90,7 @@
 
     for item_elt in item_elts:
         fields = []
-        for elt in item_elt.children:
+        for elt in item_elt.elements():
             if elt.name != 'field':
                 warning("Unexpected tag (%s)" % elt.name)
                 continue