sharing: load configuration into base

This commit is contained in:
Peter Bieringer
2026-02-24 06:30:26 +01:00
parent 35060f25b5
commit b80fd10e9c

View File

@@ -22,7 +22,7 @@ import xml.etree.ElementTree as ET
from typing import Optional, Union from typing import Optional, Union
from radicale import (auth, config, hook, httputils, pathutils, rights, from radicale import (auth, config, hook, httputils, pathutils, rights,
storage, types, utils, web, xmlutils) sharing, storage, types, utils, web, xmlutils)
from radicale.log import logger from radicale.log import logger
from radicale.rights import intersect from radicale.rights import intersect
@@ -38,6 +38,7 @@ class ApplicationBase:
_storage: storage.BaseStorage _storage: storage.BaseStorage
_rights: rights.BaseRights _rights: rights.BaseRights
_web: web.BaseWeb _web: web.BaseWeb
_sharing: sharing.BaseSharing
_encoding: str _encoding: str
_max_resource_size: int _max_resource_size: int
_permit_delete_collection: bool _permit_delete_collection: bool
@@ -51,6 +52,7 @@ class ApplicationBase:
self._storage = storage.load(configuration) self._storage = storage.load(configuration)
self._rights = rights.load(configuration) self._rights = rights.load(configuration)
self._web = web.load(configuration) self._web = web.load(configuration)
self._sharing = sharing.load(configuration)
self._encoding = configuration.get("encoding", "request") self._encoding = configuration.get("encoding", "request")
self._log_bad_put_request_content = configuration.get("logging", "bad_put_request_content") self._log_bad_put_request_content = configuration.get("logging", "bad_put_request_content")
self._response_content_on_debug = configuration.get("logging", "response_content_on_debug") self._response_content_on_debug = configuration.get("logging", "response_content_on_debug")