mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Default config toml path
This commit is contained in:
parent
c57e868ce2
commit
341059d07d
1 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ def evaluate_simple_js_expression(expr, context={}):
|
|||
class ConfigPanel:
|
||||
entity_type = "config"
|
||||
save_path_tpl = None
|
||||
config_path_tpl = "/usr/share/yunohost/other/config_{entity}.toml"
|
||||
config_path_tpl = "/usr/share/yunohost/other/config_{entity_type}.toml"
|
||||
save_mode = "full"
|
||||
|
||||
@classmethod
|
||||
|
@ -216,7 +216,7 @@ class ConfigPanel:
|
|||
self.entity = entity
|
||||
self.config_path = config_path
|
||||
if not config_path:
|
||||
self.config_path = self.config_path_tpl.format(entity=entity)
|
||||
self.config_path = self.config_path_tpl.format(entity=entity, entity_type=self.entity_type)
|
||||
self.save_path = save_path
|
||||
if not save_path and self.save_path_tpl:
|
||||
self.save_path = self.save_path_tpl.format(entity=entity)
|
||||
|
|
Loading…
Add table
Reference in a new issue