File tree Expand file tree Collapse file tree 4 files changed +21
-4
lines changed Expand file tree Collapse file tree 4 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ Package maintainers and users who have to manually update their installation
9
9
may want to subscribe to `GitHub's tag feed
10
10
<https://github.com/pimutils/vdirsyncer/tags.atom> `_.
11
11
12
+ - Add "description" and "order" as metadata. These fetch the CalDAV:
13
+ calendar-description, CardDAV:addressbook-description and apple-ns: calendar-order
14
+ properties.
15
+
12
16
Version 0.16.8
13
17
==============
14
18
Original file line number Diff line number Diff line change @@ -116,9 +116,12 @@ 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
121
+ This synchronizes the ``http://apple.com/ns/ical/:calendar-color ``,
122
+ ``DAV:displayname ``, ``CalDAV:calendar-description ``,
123
+ ``CardDAV:addressbook-description `` and
124
+ ``http://apple.com/ns/ical/:calendar-order `` properties. The
122
125
``conflict_resolution `` parameter applies here as well.
123
126
124
127
.. _storage_config :
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
+ - A file called ``order `` inside the vdir includes the relative order
60
+ of the calendar, a property that is only relevant in UI design.
61
+
62
+ - Files called ``displayname `` and ``description `` contain a UTF-8 encoded label/
63
+ description, that may be used to represent the vdir in UIs.
61
64
62
65
Writing to vdirs
63
66
================
Original file line number Diff line number Diff line change @@ -728,6 +728,8 @@ class CalDAVStorage(DAVStorage):
728
728
_property_table = dict (DAVStorage ._property_table )
729
729
_property_table .update ({
730
730
'color' : ('calendar-color' , 'http://apple.com/ns/ical/' ),
731
+ 'description' : ('calendar-description' , 'urn:ietf:params:xml:ns:caldav' ),
732
+ 'order' : ('calendar-order' , 'http://apple.com/ns/ical/' ),
731
733
})
732
734
733
735
def __init__ (self , start_date = None , end_date = None ,
@@ -843,3 +845,8 @@ class CardDAVStorage(DAVStorage):
843
845
</C:addressbook-multiget>'''
844
846
845
847
get_multi_data_query = '{urn:ietf:params:xml:ns:carddav}address-data'
848
+
849
+ _property_table = dict (DAVStorage ._property_table )
850
+ _property_table .update ({
851
+ 'description' : ('addressbook-description' , 'urn:ietf:params:xml:ns:carddav' ),
852
+ })
You can’t perform that action at this time.
0 commit comments