comparison 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
comparison
equal deleted inserted replaced
3122:4486d72658b9 3123:130f9cb6e0ab
137 self.bridge.register_method("setParam", self.setParam) 137 self.bridge.register_method("setParam", self.setParam)
138 self.bridge.register_method("getParamA", self.memory.getStringParamA) 138 self.bridge.register_method("getParamA", self.memory.getStringParamA)
139 self.bridge.register_method("asyncGetParamA", self.memory.asyncGetStringParamA) 139 self.bridge.register_method("asyncGetParamA", self.memory.asyncGetStringParamA)
140 self.bridge.register_method( 140 self.bridge.register_method(
141 "asyncGetParamsValuesFromCategory", 141 "asyncGetParamsValuesFromCategory",
142 self.memory.asyncGetParamsValuesFromCategory, 142 self.memory._getParamsValuesFromCategory,
143 ) 143 )
144 self.bridge.register_method("getParamsUI", self.memory.getParamsUI) 144 self.bridge.register_method("getParamsUI", self.memory._getParamsUI)
145 self.bridge.register_method( 145 self.bridge.register_method(
146 "getParamsCategories", self.memory.getParamsCategories 146 "getParamsCategories", self.memory.getParamsCategories
147 ) 147 )
148 self.bridge.register_method("paramsRegisterApp", self.memory.paramsRegisterApp) 148 self.bridge.register_method("paramsRegisterApp", self.memory.paramsRegisterApp)
149 self.bridge.register_method("historyGet", self.memory._historyGet) 149 self.bridge.register_method("historyGet", self.memory._historyGet)