remove everything marked as DEPRECATED
This commit is contained in:
@@ -46,16 +46,16 @@ from importlib import import_module
|
||||
from radicale import storage
|
||||
from radicale.log import logger
|
||||
|
||||
INTERNAL_TYPES = ("None", "none", "authenticated", "owner_write", "owner_only",
|
||||
INTERNAL_TYPES = ("none", "authenticated", "owner_write", "owner_only",
|
||||
"from_file")
|
||||
|
||||
|
||||
def load(configuration):
|
||||
"""Load the rights manager chosen in configuration."""
|
||||
rights_type = configuration.get("rights", "type")
|
||||
if configuration.get("auth", "type") in ("None", "none"): # DEPRECATED
|
||||
rights_type = "None"
|
||||
if rights_type in ("None", "none"): # DEPRECATED: use "none"
|
||||
if configuration.get("auth", "type") == "none":
|
||||
rights_type = "none"
|
||||
if rights_type == "none":
|
||||
rights_class = NoneRights
|
||||
elif rights_type == "authenticated":
|
||||
rights_class = AuthenticatedRights
|
||||
|
||||
Reference in New Issue
Block a user