changeset 395:9bc3fbf3e685

backend: fixed elements filtering in parseItemConfig
author Goffi <goffi@goffi.org>
date Sat, 23 Feb 2019 20:59:41 +0100
parents dc83b1d837cf
children 562e7a01218d
files src/backend.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/backend.py	Mon Feb 18 19:12:04 2019 +0100
+++ b/src/backend.py	Sat Feb 23 20:59:41 2019 +0100
@@ -301,7 +301,7 @@
         item_config = None
         access_model = const.VAL_AMODEL_DEFAULT
         for idx, elt in enumerate(item.elements()):
-            if elt.uri != 'data_form.NS_X_DATA' or elt.name != 'x':
+            if elt.uri != data_form.NS_X_DATA or elt.name != 'x':
                 continue
             form = data_form.Form.fromElement(elt)
             if form.formNamespace == const.NS_ITEM_CONFIG: