mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Elaborate on caldav item queries with Radicale
This commit is contained in:
parent
0b6e3adf0e
commit
f5f505f557
2 changed files with 18 additions and 9 deletions
|
|
@ -23,12 +23,19 @@ Radicale.
|
||||||
and ``end_date`` for :py:class:`vdirsyncer.storage.CaldavStorage` will have
|
and ``end_date`` for :py:class:`vdirsyncer.storage.CaldavStorage` will have
|
||||||
no or unpredicted consequences.
|
no or unpredicted consequences.
|
||||||
|
|
||||||
- Versions of Radicale older than 0.9b1 don't support the necessary
|
- `Versions of Radicale older than 0.9b1 choke on RFC-conform queries for all
|
||||||
functionality for efficient querying for all items of a collection.
|
items of a collection. <https://github.com/Kozea/Radicale/issues/143>`_.
|
||||||
Vdirsyncer's defaults are supposed to deal with this situation, but if you're
|
|
||||||
using :py:class:`vdirsyncer.storage.CaldavStorage` and set ``item_types`` to
|
Vdirsyncer's default value ``'VTODO, VEVENT'`` for
|
||||||
an empty value (``item_types =``), these versions of Radicale will not work
|
:py:class:`vdirsyncer.storage.CaldavStorage`'s ``item_types`` parameter will
|
||||||
properly.
|
work fine with these versions, and so will all values, except for the empty
|
||||||
|
one.
|
||||||
|
|
||||||
|
The empty value ``''`` will get vdirsyncer to send a single HTTP request to
|
||||||
|
fetch all items, instead of one HTTP request for each possible item type. As
|
||||||
|
the linked issue describes, old versions of Radicale expect a
|
||||||
|
non-RFC-compliant format for such queries, one which vdirsyncer doesn't
|
||||||
|
support.
|
||||||
|
|
||||||
ownCloud
|
ownCloud
|
||||||
========
|
========
|
||||||
|
|
|
||||||
|
|
@ -444,9 +444,11 @@ class CaldavStorage(DavStorage):
|
||||||
''' + DavStorage.__doc__ + '''
|
''' + DavStorage.__doc__ + '''
|
||||||
:param start_date: Start date of timerange to show, default -inf.
|
:param start_date: Start date of timerange to show, default -inf.
|
||||||
:param end_date: End date of timerange to show, default +inf.
|
:param end_date: End date of timerange to show, default +inf.
|
||||||
:param item_types: A tuple of collection types to show from the server.
|
:param item_types: Comma-separated collection types to show from the
|
||||||
For example, if you want to only get VEVENTs, pass ``VEVENT``.
|
server. Dependent on server functionality, no clientside validation of
|
||||||
Dependent on server functionality, no clientside validation of results.
|
results. The empty value ``''`` is the same as ``'VTODO, VEVENT,
|
||||||
|
VJOURNAL'``.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
storage_name = 'caldav'
|
storage_name = 'caldav'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue