[enh] allow 'display_text' ~fake~ argument in manifest.json

This commit is contained in:
Laurent Peuch 2019-03-04 02:59:14 +01:00
parent 58af343a84
commit b8c5e9f1b6

View file

@ -2202,6 +2202,11 @@ def _parse_action_args_in_yunohost_format(args, action_args, auth=None):
if arg_type == 'boolean':
arg_default = 1 if arg_default else 0
# do not print for webadmin
if arg_type == 'display_text' and msettings.get('interface') != 'api':
print(arg["text"])
continue
# Attempt to retrieve argument value
if arg_name in args:
arg_value = args[arg_name]