mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-17 12:45:52 +00:00
Remove some workarounds for Radicale
This commit is contained in:
parent
32a4bd9c16
commit
8275d23635
3 changed files with 6 additions and 11 deletions
|
|
@ -18,6 +18,8 @@ Version 0.4.3
|
|||
- Add ``post_hook`` param to ``filesystem``-storage.
|
||||
- Collection creation now also works with SabreDAV-based servers, such as
|
||||
Baikal or ownCloud.
|
||||
- Removed some workarounds for Radicale. Upgrading to the latest Radicale will
|
||||
fix the issues.
|
||||
|
||||
Version 0.4.2
|
||||
=============
|
||||
|
|
|
|||
|
|
@ -64,16 +64,9 @@ them is neither supported nor encouraged.
|
|||
- `Versions of Radicale older than 0.9b1 choke on RFC-conform queries for all
|
||||
items of a collection <https://github.com/Kozea/Radicale/issues/143>`_.
|
||||
|
||||
Vdirsyncer's default value ``["VTODO", "VEVENT"]'`` for
|
||||
:py:class:`vdirsyncer.storage.CaldavStorage`'s ``item_types`` parameter will
|
||||
work fine with these versions, and so will all values, except for the empty
|
||||
one.
|
||||
|
||||
The empty list ``[]`` 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.
|
||||
You have to set ``item_types = ["VTODO", "VEVENT"]`` in
|
||||
:py:class:`vdirsyncer.storage.CaldavStorage` for vdirsyncer to work with
|
||||
those versions.
|
||||
|
||||
.. _Radicale: http://radicale.org/
|
||||
|
||||
|
|
|
|||
|
|
@ -556,7 +556,7 @@ class CaldavStorage(DavStorage):
|
|||
get_multi_data_query = '{urn:ietf:params:xml:ns:caldav}calendar-data'
|
||||
|
||||
def __init__(self, start_date=None, end_date=None,
|
||||
item_types=('VTODO', 'VEVENT'), **kwargs):
|
||||
item_types=(), **kwargs):
|
||||
super(CaldavStorage, self).__init__(**kwargs)
|
||||
if not isinstance(item_types, (list, tuple)):
|
||||
raise ValueError('item_types must be a list.')
|
||||
|
|
|
|||
Loading…
Reference in a new issue