changeset 2936:782612c7854b

plugin list interests: add "namespace" in serialised data
author Goffi <goffi@goffi.org>
date Fri, 03 May 2019 20:44:55 +0200
parents 4f600b4ae819
children db0890c9c7db
files sat/plugins/plugin_exp_list_of_interest.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_exp_list_of_interest.py	Fri May 03 20:42:21 2019 +0200
+++ b/sat/plugins/plugin_exp_list_of_interest.py	Fri May 03 20:44:55 2019 +0200
@@ -161,6 +161,8 @@
         for item_elt in interests_data[0]:
             interest_data = {}
             interest_elt = item_elt.interest
+            if interest_elt.hasAttribute(u'namespace'):
+                interest_data[u'namespace'] = interest_elt.getAttribute(u'namespace')
             if interest_elt.hasAttribute(u'name'):
                 interest_data[u'name'] = interest_elt.getAttribute(u'name')
             if interest_elt.hasAttribute(u'thumb_url'):