diff sat_frontends/jp/cmd_param.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 fee60f17ebac
children 9d0df638c8b4
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_param.py	Sat Jan 25 21:08:39 2020 +0100
+++ b/sat_frontends/jp/cmd_param.py	Sat Jan 25 21:08:40 2020 +0100
@@ -47,7 +47,7 @@
         elif self.args.name is None:
             try:
                 values_dict = await self.host.bridge.asyncGetParamsValuesFromCategory(
-                    self.args.category, self.args.security_limit, self.profile)
+                    self.args.category, self.args.security_limit, "", "", self.profile)
             except Exception as e:
                 self.disp(_(f"can't find requested parameters: {e}"), error=True)
                 self.host.quit(C.EXIT_NOT_FOUND)