Add logs (fixes #162)

This commit is contained in:
Guillaume Ayoub
2011-04-10 18:17:06 +02:00
parent 7e572f44e4
commit d9ea784e31
9 changed files with 146 additions and 54 deletions

View File

@@ -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)