mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Add logs (fixes #162)
This commit is contained in:
parent
7e572f44e4
commit
d9ea784e31
9 changed files with 146 additions and 54 deletions
|
@ -31,5 +31,9 @@ from radicale import config
|
|||
|
||||
def load():
|
||||
"""Load list of available ACL managers."""
|
||||
module = __import__("radicale.acl", fromlist=[config.get("acl", "type")])
|
||||
return getattr(module, config.get("acl", "type"))
|
||||
acl_type = config.get("acl", "type")
|
||||
if acl_type == "None":
|
||||
return None
|
||||
else:
|
||||
module = __import__("radicale.acl", fromlist=[acl_type])
|
||||
return getattr(module, acl_type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue