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
|
|
@ -212,7 +212,7 @@ class GroupBlog(object):
|
|||
|
||||
def _parseAccessData(self, microblog_data, item):
|
||||
P = self.host.plugins["XEP-0060"]
|
||||
form_elts = filter(lambda elt: elt.name == "x", item.children)
|
||||
form_elts = [child for child in item.elements() if child.name == "x"]
|
||||
for form_elt in form_elts:
|
||||
form = data_form.Form.fromElement(form_elt)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue