diff sat/core/sat_main.py @ 3123:130f9cb6e0ab

core (memory/params): added `extra` argument to filter out params notably in `getParamsUI`: In some case, it may be desirable for a frontend to not expose some parameters to user (e.g. it is the case on Android with the `autoconnect_backend` parameter). An new `extra` parameter has been added to a couple of parameters method for that: it can contain the `ignore` key with a list of [category, name] of parameters to skip.
author Goffi <goffi@goffi.org>
date Sat, 25 Jan 2020 21:08:40 +0100
parents 0c29155ac68b
children c3ce8c997fdf
line wrap: on
line diff
--- a/sat/core/sat_main.py	Sat Jan 25 21:08:39 2020 +0100
+++ b/sat/core/sat_main.py	Sat Jan 25 21:08:40 2020 +0100
@@ -139,9 +139,9 @@
         self.bridge.register_method("asyncGetParamA", self.memory.asyncGetStringParamA)
         self.bridge.register_method(
             "asyncGetParamsValuesFromCategory",
-            self.memory.asyncGetParamsValuesFromCategory,
+            self.memory._getParamsValuesFromCategory,
         )
-        self.bridge.register_method("getParamsUI", self.memory.getParamsUI)
+        self.bridge.register_method("getParamsUI", self.memory._getParamsUI)
         self.bridge.register_method(
             "getParamsCategories", self.memory.getParamsCategories
         )