core: fix calls to domish.Element.elements:
domish.Element.elements should be called with namespace and element name as 2 arguments, but it has been confused in several places with the call to `domish.Element.addElement` which is often done with a `(namespace, name)` tuple. Unfortunately calling with a tuple is accepted and doesn't raise any error in `elements`, but this result in a wrong element returned. This patch fixes the erroneous calls.
This commit is contained in:
parent
9ce0f943cc
commit
8d64157d88
1 changed files with 10 additions and 10 deletions
|
|
@ -372,7 +372,7 @@ class PubsubSchema(object):
|
|||
items, metadata = items_data
|
||||
items_xmlui = []
|
||||
for item_elt in items:
|
||||
for x_elt in item_elt.elements((data_form.NS_X_DATA, "x")):
|
||||
for x_elt in item_elt.elements(data_form.NS_X_DATA, "x"):
|
||||
form = data_form.Form.fromElement(x_elt)
|
||||
if form_ns and form.formNamespace != form_ns:
|
||||
log.debug(
|
||||
|
|
|
|||
Loading…
Reference in a new issue