From bdff6307e418ce381645b37dc455bf54d127f01b Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Tue, 24 Feb 2026 06:47:03 +0100 Subject: [PATCH] sharing: add config options --- radicale/config.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/radicale/config.py b/radicale/config.py index 519269bc..e147387c 100644 --- a/radicale/config.py +++ b/radicale/config.py @@ -37,7 +37,7 @@ from configparser import RawConfigParser from typing import (Any, Callable, ClassVar, Iterable, List, Optional, Sequence, Tuple, TypeVar, Union) -from radicale import auth, hook, rights, storage, types, web +from radicale import auth, hook, rights, sharing, storage, types, web from radicale.hook import email from radicale.item import check_and_sanitize_props @@ -454,6 +454,24 @@ DEFAULT_CONFIG_SCHEMA: types.CONFIG_SCHEMA = OrderedDict([ "value": "", "help": "predefined user collections", "type": json_str})])), + ("sharing", OrderedDict([ + ("type", { + "value": "none", + "help": "sharing database type", + "type": str_or_callable, + "internal": sharing.INTERNAL_TYPES}), + ("database_path", { + "value": "", + "help": "database path", + "type": filepath}), + ("collection_by_map", { + "value": "false", + "help": "enable sharing of collection by map", + "type": bool}), + ("collection_by_token", { + "value": "false", + "help": "enable sharing of collection by token", + "type": bool})])), ("hook", OrderedDict([ ("type", { "value": "none",