core, plugins: fixed bad use of children instead of elements() for domish.Element instances.
This commit is contained in:
parent
58561b8732
commit
eb60e0ff33
1 changed files with 19 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue