core, plugins: fixed bad use of children instead of elements() for domish.Element instances.

This commit is contained in:
Goffi 2013-10-15 19:28:34 +02:00
commit eb60e0ff33

View file

@ -75,7 +75,7 @@ def dataFormResult2AdvancedList(form_ui, form_xml):
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 @@ def dataFormResult2AdvancedList(form_ui, form_xml):
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