diff src/plugins/plugin_misc_groupblog.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 0e16288d6816
children 0c2c1dfb79e4
line wrap: on
line diff
--- a/src/plugins/plugin_misc_groupblog.py	Mon Oct 07 13:09:57 2013 +0200
+++ b/src/plugins/plugin_misc_groupblog.py	Tue Oct 15 19:28:34 2013 +0200
@@ -212,7 +212,7 @@
 
     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)