Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
3122:4486d72658b9 | 3123:130f9cb6e0ab |
---|---|
45 categories = await self.host.bridge.getParamsCategories() | 45 categories = await self.host.bridge.getParamsCategories() |
46 print("\n".join(categories)) | 46 print("\n".join(categories)) |
47 elif self.args.name is None: | 47 elif self.args.name is None: |
48 try: | 48 try: |
49 values_dict = await self.host.bridge.asyncGetParamsValuesFromCategory( | 49 values_dict = await self.host.bridge.asyncGetParamsValuesFromCategory( |
50 self.args.category, self.args.security_limit, self.profile) | 50 self.args.category, self.args.security_limit, "", "", self.profile) |
51 except Exception as e: | 51 except Exception as e: |
52 self.disp(_(f"can't find requested parameters: {e}"), error=True) | 52 self.disp(_(f"can't find requested parameters: {e}"), error=True) |
53 self.host.quit(C.EXIT_NOT_FOUND) | 53 self.host.quit(C.EXIT_NOT_FOUND) |
54 else: | 54 else: |
55 for name, value in values_dict.items(): | 55 for name, value in values_dict.items(): |