changeset 1388:68ffd60a58a5

pages (lists): specify when item is coming from config
author Goffi <goffi@goffi.org>
date Sat, 27 Feb 2021 20:55:35 +0100
parents a84383c659b4
children ac4173fff71d
files libervia/pages/lists/page_meta.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/pages/lists/page_meta.py	Sat Feb 20 14:07:22 2021 +0100
+++ b/libervia/pages/lists/page_meta.py	Sat Feb 27 20:55:35 2021 +0100
@@ -26,7 +26,7 @@
                 node = list_data["node"]
                 name = list_data["name"]
                 url = self.getPageByName("lists").getURL(service, node)
-                lists_directory.append({"name": name, "url": url})
+                lists_directory.append({"name": name, "url": url, "from_config": True})
         except KeyError as e:
             log.warning("Missing field in lists_directory_json: {msg}".format(msg=e))
         except Exception as e:
@@ -46,6 +46,7 @@
                 service = list_data["service"]
                 node = list_data["node"]
                 list_data["url"] = self.getPageByName("lists").getURL(service, node)
+                list_data["from_config"] = False
                 lists_directory.append(list_data)
 
     icons_names = set()