use group exclusively except for config
This commit is contained in:
parent
11710f75a8
commit
ca2d519345
@ -112,15 +112,6 @@ def run():
|
|||||||
configuration = config.load(configuration_paths)
|
configuration = config.load(configuration_paths)
|
||||||
configuration_found = True
|
configuration_found = True
|
||||||
|
|
||||||
# Update Radicale configuration according to options
|
|
||||||
for option in parser.option_list:
|
|
||||||
key = option.dest
|
|
||||||
if key:
|
|
||||||
section = option.dest.split('_')[0]
|
|
||||||
value = getattr(options, key)
|
|
||||||
if value is not None:
|
|
||||||
configuration.set(section, key, str(value))
|
|
||||||
|
|
||||||
for group in parser.option_groups:
|
for group in parser.option_groups:
|
||||||
section = group.title
|
section = group.title
|
||||||
for option in group.option_list:
|
for option in group.option_list:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user