Strip method:publish, fix #502

This commit is contained in:
Markus Unterwaditzer 2017-03-02 14:45:11 +01:00
parent 968b416cc5
commit 38599e1666
2 changed files with 7 additions and 0 deletions

View file

@ -9,6 +9,11 @@ Package maintainers and users who have to manually update their installation
may want to subscribe to `GitHub's tag feed
<https://github.com/pimutils/vdirsyncer/tags.atom>`_.
Version 0.16.0
==============
- Strip ``METHOD:PUBLISH`` added by some calendar providers.
Version 0.15.0
==============

View file

@ -162,6 +162,8 @@ def _split_collection_impl(item, main, inline, items, ungrouped_items):
wrapper.subcomponents.append(item)
elif item.name in (u'VCALENDAR', u'VADDRESSBOOK'):
if item.name == 'VCALENDAR':
del item['METHOD']
for subitem in item.subcomponents:
_split_collection_impl(subitem, item, inline, items,
ungrouped_items)