cosmetics: cosmetics, abstract a function
This commit is contained in:
@@ -80,10 +80,10 @@ def xml_proppatch(base_prefix: str, path: str,
|
||||
all_props = radicale_item.check_and_sanitize_props(all_props_with_remove)
|
||||
if share and share_overlay and _sharing is not None:
|
||||
# _sharing is not None: always the case, but makes mypy happy
|
||||
_sharing.database_update_sharing(ShareType=share['ShareType'],
|
||||
PathOrToken=share['PathOrToken'],
|
||||
OwnerOrUser=share['User'],
|
||||
Properties=cast(Dict[str, str], all_props))
|
||||
_sharing.sharing_collection_update(ShareType=share['ShareType'],
|
||||
PathOrToken=share['PathOrToken'],
|
||||
OwnerOrUser=share['User'],
|
||||
Properties=cast(Dict[str, str], all_props))
|
||||
else:
|
||||
if collection is not None:
|
||||
# always the case, but makes mypy happy
|
||||
|
||||
Reference in New Issue
Block a user