From 8a33199d916027d6596c65c0df1a2533fcbbd179 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 22 Jun 2018 04:31:13 +0200 Subject: [PATCH] [mod] add experimental warning for config panel --- locales/en.json | 1 + src/yunohost/app.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/locales/en.json b/locales/en.json index dc7a5203..19213c37 100644 --- a/locales/en.json +++ b/locales/en.json @@ -179,6 +179,7 @@ "executing_command": "Executing command '{command:s}'...", "executing_script": "Executing script '{script:s}'...", "extracting": "Extracting...", + "experimental_feature": "Warning: this feature is experimental and not consider stable, you shouldn't be using it except if you know what you are doing.", "field_invalid": "Invalid field '{:s}'", "firewall_reload_failed": "Unable to reload the firewall", "firewall_reloaded": "The firewall has been reloaded", diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 32ecff82..2a7b6bf7 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -1367,7 +1367,12 @@ def app_change_label(auth, app, new_label): app_ssowatconf(auth) +# Config panel todo list: +# * docstrings +# * merge translations on the json once the workflow is in place def app_config_show_panel(app_id): + logger.warning(m18n.n('experimental_feature')) + from yunohost.hook import hook_exec # this will take care of checking if the app is installed @@ -1447,6 +1452,8 @@ def app_config_show_panel(app_id): def app_config_apply(app_id, args): + logger.warning(m18n.n('experimental_feature')) + from yunohost.hook import hook_exec installed = _is_installed(app_id)