mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Depreciate app_change_label
This commit is contained in:
parent
fdce1e1676
commit
55e34aa5ae
2 changed files with 3 additions and 5 deletions
|
@ -27,6 +27,7 @@
|
||||||
"app_install_failed": "Could not install {app}: {error}",
|
"app_install_failed": "Could not install {app}: {error}",
|
||||||
"app_install_script_failed": "An error occurred inside the app installation script",
|
"app_install_script_failed": "An error occurred inside the app installation script",
|
||||||
"app_make_default_location_already_used": "Can't make the app '{app}' the default on the domain, '{domain}' is already in use by the other app '{other_app}'",
|
"app_make_default_location_already_used": "Can't make the app '{app}' the default on the domain, '{domain}' is already in use by the other app '{other_app}'",
|
||||||
|
"app_label_depreciated": "This command is depreciated !! Please use the new command 'yunohost user permission update' to manage the app label.",
|
||||||
"app_location_unavailable": "This URL is either unavailable, or conflicts with the already installed app(s):\n{apps:s}",
|
"app_location_unavailable": "This URL is either unavailable, or conflicts with the already installed app(s):\n{apps:s}",
|
||||||
"app_manifest_invalid": "Something is wrong with the app manifest: {error}",
|
"app_manifest_invalid": "Something is wrong with the app manifest: {error}",
|
||||||
"app_not_upgraded": "The app '{failed_app}' failed to upgrade, and as a consequence the following apps' upgrades have been cancelled: {apps}",
|
"app_not_upgraded": "The app '{failed_app}' failed to upgrade, and as a consequence the following apps' upgrades have been cancelled: {apps}",
|
||||||
|
|
|
@ -724,7 +724,6 @@ def app_install(operation_logger, app, label=None, args=None, no_remove_on_failu
|
||||||
# Set initial app settings
|
# Set initial app settings
|
||||||
app_settings = {
|
app_settings = {
|
||||||
'id': app_instance_name,
|
'id': app_instance_name,
|
||||||
'label': label,
|
|
||||||
'install_time': int(time.time()),
|
'install_time': int(time.time()),
|
||||||
'current_revision': manifest.get('remote', {}).get('revision', "?")
|
'current_revision': manifest.get('remote', {}).get('revision', "?")
|
||||||
}
|
}
|
||||||
|
@ -1356,10 +1355,8 @@ def app_change_label(app, new_label):
|
||||||
installed = _is_installed(app)
|
installed = _is_installed(app)
|
||||||
if not installed:
|
if not installed:
|
||||||
raise YunohostError('app_not_installed', app=app, all_apps=_get_all_installed_apps_id())
|
raise YunohostError('app_not_installed', app=app, all_apps=_get_all_installed_apps_id())
|
||||||
|
logger.warning(m18n.n('app_label_depreciated'))
|
||||||
app_setting(app, "label", value=new_label)
|
user_permission_update(app + ".main", label=new_label)
|
||||||
|
|
||||||
app_ssowatconf()
|
|
||||||
|
|
||||||
|
|
||||||
# actions todo list:
|
# actions todo list:
|
||||||
|
|
Loading…
Add table
Reference in a new issue