sharing/code: 3.9
This commit is contained in:
@@ -743,13 +743,13 @@ def xml_item_response(base_prefix: str, href: str,
|
|||||||
def retrieve_items(
|
def retrieve_items(
|
||||||
base_prefix: str, path: str, collection: storage.BaseCollection,
|
base_prefix: str, path: str, collection: storage.BaseCollection,
|
||||||
hreferences: Iterable[str], filters: Sequence[ET.Element],
|
hreferences: Iterable[str], filters: Sequence[ET.Element],
|
||||||
multistatus: ET.Element, share: Union[dict | None]) -> Iterator[Tuple[radicale_item.Item, bool]]:
|
multistatus: ET.Element, share: Union[dict, None]) -> Iterator[Tuple[radicale_item.Item, bool]]:
|
||||||
"""Retrieves all items that are referenced in ``hreferences`` from
|
"""Retrieves all items that are referenced in ``hreferences`` from
|
||||||
``collection`` and adds 404 responses for missing and invalid items
|
``collection`` and adds 404 responses for missing and invalid items
|
||||||
to ``multistatus``."""
|
to ``multistatus``."""
|
||||||
collection_requested = False
|
collection_requested = False
|
||||||
|
|
||||||
def get_names(share: Union[dict | None]) -> Iterator[str]:
|
def get_names(share: Union[dict, None]) -> Iterator[str]:
|
||||||
"""Extracts all names from references in ``hreferences`` and adds
|
"""Extracts all names from references in ``hreferences`` and adds
|
||||||
404 responses for invalid references to ``multistatus``.
|
404 responses for invalid references to ``multistatus``.
|
||||||
If the whole collections is referenced ``collection_requested``
|
If the whole collections is referenced ``collection_requested``
|
||||||
|
|||||||
Reference in New Issue
Block a user