Commit 8cd6533a authored by Matthieu Lamalle's avatar Matthieu Lamalle

Merge branch 'feature/317_list_messages' into 'develop'

Feature/317 list messages

See merge request !12
parents 1e4e6d10 a674ec39
Pipeline #432 passed with stage
in 0 seconds
......@@ -140,20 +140,16 @@ def _get_root_option(optiondescriptions):
messages.append(name)
messages.sort()
options_obj = [ChoiceOption('message',
'Sélectionner le message.',
'Nom du message.',
tuple(messages),
properties=frozenset(['mandatory', 'positional']))]
for name, options_descr in optiondescriptions.items():
description, options = options_descr
if len(options) != 1:
requires = [{'option': options_obj[0],
'expected': name,
'action': 'disabled',
'inverse': True}]
properties = None
else:
requires = None
properties = frozenset(['disabled'])
requires = [{'option': options_obj[0],
'expected': name,
'action': 'disabled',
'inverse': True}]
properties = None
options_obj.append(OptionDescription(name.replace('.', '_'),
description,
options,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment