mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-04 18:22:26 +00:00
use group exclusively except for config
This commit is contained in:
parent
11710f75a8
commit
ca2d519345
1 changed files with 0 additions and 9 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue