1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Rename backends from None to none

All other backend names are lower case.
This commit is contained in:
Unrud 2017-05-31 12:01:39 +02:00
parent edaf21561d
commit eba6621f17
4 changed files with 16 additions and 16 deletions

View file

@ -48,9 +48,9 @@ from . import storage
def load(configuration, logger):
"""Load the rights manager chosen in configuration."""
rights_type = configuration.get("rights", "type")
if configuration.get("auth", "type") == "None":
if configuration.get("auth", "type") in ("None", "none"): # DEPRECATED
rights_type = "None"
if rights_type == "None":
if rights_type in ("None", "none"): # DEPRECATED: use "none"
rights_class = NoneRights
elif rights_type == "authenticated":
rights_class = AuthenticatedRights