File tree Expand file tree Collapse file tree 4 files changed +29
-5
lines changed Expand file tree Collapse file tree 4 files changed +29
-5
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ Note: Version 0.17 has some alpha releases but ultimately was never finalised.
22
22
- Python 3.9 is now supported.
23
23
- Our Debian/Ubuntu build scripts have been updated. New versions should be
24
24
pushed to those repositories soon.
25
+ - Add "description" and "order" as metadata. These fetch the CalDAV:
26
+ calendar-description, CardDAV:addressbook-description and apple-ns: calendar-order
27
+ properties.
25
28
26
29
Version 0.16.8
27
30
==============
Original file line number Diff line number Diff line change @@ -116,10 +116,16 @@ Pair Section
116
116
- ``metadata ``: Metadata keys that should be synchronized when ``vdirsyncer
117
117
metasync `` is executed. Example::
118
118
119
- metadata = ["color", "displayname"]
119
+ metadata = ["color", "displayname", "description", "order" ]
120
120
121
- This synchronizes the ``color `` and the ``displayname `` properties. The
122
- ``conflict_resolution `` parameter applies here as well.
121
+ This synchronizes the following properties:
122
+
123
+ - color: ``http://apple.com/ns/ical/:calendar-color ``
124
+ - displayname: ``DAV:displayname ``
125
+ - description: ``CalDAV:calendar-description `` and ``CardDAV:addressbook-description ``
126
+ - order: ``http://apple.com/ns/ical/:calendar-order ``
127
+
128
+ The ``conflict_resolution `` parameter applies for these properties too.
123
129
124
130
.. _storage_config :
125
131
Original file line number Diff line number Diff line change @@ -56,8 +56,11 @@ have any file extensions.
56
56
known from CSS, for example) are allowed. The prefixing ``# `` must be
57
57
present.
58
58
59
- - A file called ``displayname `` contains a UTF-8 encoded label that may be used
60
- to represent the vdir in UIs.
59
+ - Files called ``displayname `` and ``description `` contain a UTF-8 encoded label/
60
+ description, that may be used to represent the vdir in UIs.
61
+
62
+ - A file called ``order `` inside the vdir includes the relative order
63
+ of the calendar, a property that is only relevant in UI design.
61
64
62
65
Writing to vdirs
63
66
================
Original file line number Diff line number Diff line change @@ -719,6 +719,8 @@ class CalDAVStorage(DAVStorage):
719
719
_property_table .update (
720
720
{
721
721
"color" : ("calendar-color" , "http://apple.com/ns/ical/" ),
722
+ "description" : ("calendar-description" , "urn:ietf:params:xml:ns:caldav" ),
723
+ "order" : ("calendar-order" , "http://apple.com/ns/ical/" ),
722
724
}
723
725
)
724
726
@@ -835,3 +837,13 @@ class CardDAVStorage(DAVStorage):
835
837
</C:addressbook-multiget>"""
836
838
837
839
get_multi_data_query = "{urn:ietf:params:xml:ns:carddav}address-data"
840
+
841
+ _property_table = dict (DAVStorage ._property_table )
842
+ _property_table .update (
843
+ {
844
+ "description" : (
845
+ "addressbook-description" ,
846
+ "urn:ietf:params:xml:ns:carddav" ,
847
+ ),
848
+ }
849
+ )
You can’t perform that action at this time.
0 commit comments