mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[mod] more renaming
This commit is contained in:
parent
e138c3e377
commit
179958797a
1 changed files with 4 additions and 4 deletions
|
@ -626,12 +626,12 @@ class ActionsMap(object):
|
||||||
# action_name is like "list" of "domain list"
|
# action_name is like "list" of "domain list"
|
||||||
# action_options are the values
|
# action_options are the values
|
||||||
for action_name, action_options in actions.items():
|
for action_name, action_options in actions.items():
|
||||||
args = action_options.pop('arguments', {})
|
arguments = action_options.pop('arguments', {})
|
||||||
tid = (namespace, category_name, action_name)
|
tid = (namespace, category_name, action_name)
|
||||||
|
|
||||||
if 'configuration' in action_options:
|
if 'configuration' in action_options:
|
||||||
conf = action_options.pop('configuration')
|
configuration = action_options.pop('configuration')
|
||||||
_set_conf = lambda p: p.set_conf(tid, conf)
|
_set_conf = lambda p: p.set_conf(tid, configuration)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# No action configuration
|
# No action configuration
|
||||||
|
@ -650,7 +650,7 @@ class ActionsMap(object):
|
||||||
|
|
||||||
# Store action identifier and add arguments
|
# Store action identifier and add arguments
|
||||||
a_parser.set_defaults(_tid=tid)
|
a_parser.set_defaults(_tid=tid)
|
||||||
_add_arguments(tid, a_parser, args)
|
_add_arguments(tid, a_parser, arguments)
|
||||||
_set_conf(category_parser)
|
_set_conf(category_parser)
|
||||||
|
|
||||||
return top_parser
|
return top_parser
|
||||||
|
|
Loading…
Add table
Reference in a new issue