mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Use socket pairs to communicate with client threads
This commit is contained in:
parent
698980d7be
commit
66fabbead9
3 changed files with 121 additions and 128 deletions
|
@ -371,6 +371,13 @@ class Configuration:
|
|||
break
|
||||
return fconfig[section][option]
|
||||
|
||||
def get_source(self, section, option):
|
||||
"""Get the source that provides ``option`` in ``section``."""
|
||||
for config, source, _ in reversed(self._configs):
|
||||
if option in config.get(section, {}):
|
||||
return source
|
||||
raise KeyError(section, option)
|
||||
|
||||
def sections(self):
|
||||
"""List all sections."""
|
||||
return self._values.keys()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue