mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
fix: config.py: add more properties for config_get?full
This commit is contained in:
parent
c99729d062
commit
0ff9818ebf
1 changed files with 3 additions and 1 deletions
|
@ -289,6 +289,8 @@ class ConfigPanel:
|
|||
question_class = ARGUMENTS_TYPE_PARSERS[option.get("type", "string")]
|
||||
# FIXME : maybe other properties should be taken from the question, not just choices ?.
|
||||
option["choices"] = question_class(option).choices
|
||||
option["default"] = question_class(option).default
|
||||
option["pattern"] = question_class(option).pattern
|
||||
else:
|
||||
result[key] = {"ask": ask}
|
||||
if "current_value" in option:
|
||||
|
@ -603,7 +605,7 @@ class ConfigPanel:
|
|||
}
|
||||
|
||||
@property
|
||||
def future_values(self): # TODO put this in ConfigPanel ?
|
||||
def future_values(self):
|
||||
return {**self.values, **self.new_values}
|
||||
|
||||
def __getattr__(self, name):
|
||||
|
|
Loading…
Add table
Reference in a new issue