diff sat_pubsub/backend.py @ 336:a468c187bbb5

fixed parseItemConfig (was iterating on children instead of elements)
author Goffi <goffi@goffi.org>
date Sat, 12 Aug 2017 18:10:14 +0200
parents 0fcd0ea89c84
children 516b282aa542
line wrap: on
line diff
--- a/sat_pubsub/backend.py	Sun Jun 25 23:12:43 2017 +0200
+++ b/sat_pubsub/backend.py	Sat Aug 12 18:10:14 2017 +0200
@@ -254,7 +254,7 @@
         """
         item_config = None
         access_model = const.VAL_AMODEL_DEFAULT
-        for idx, elt in enumerate(item.children):
+        for idx, elt in enumerate(item.elements()):
             if elt.uri != 'data_form.NS_X_DATA' or elt.name != 'x':
                 continue
             form = data_form.Form.fromElement(elt)