summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2021-07-16 09:15:42 +0200
committerTobias Brox <tobias@redpill-linpro.com>2021-07-16 09:15:42 +0200
commit4db75faf67b7355c89ada1119865b6dfc1d783c4 (patch)
tree064c3d33de6524482d947d37119e5552cb510c9a
parentf30b574d099688760fe4ff6ee7ee13a5f82c5f08 (diff)
downloadpython-caldav-4db75faf67b7355c89ada1119865b6dfc1d783c4.zip
This fix was reported to work for @brainsky and solves https://github.com/python-caldav/caldav/issues/148 - though we are still missing test code for it, ref https://github.com/python-caldav/caldav/issues/115
-rw-r--r--caldav/objects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/caldav/objects.py b/caldav/objects.py
index 9d983e1..24f91f5 100644
--- a/caldav/objects.py
+++ b/caldav/objects.py
@@ -643,7 +643,7 @@ class Calendar(DAVObject):
prop = dav.Prop() + cdav.CalendarData()
root = cdav.CalendarMultiGet() + prop + [dav.Href(value=u.path) for u in event_urls]
response = self._query(root, 1, 'report')
- results = self._handle_prop_response(response=response, props=[cdav.CalendarData()])
+ results = response.expand_simple_props([cdav.CalendarData()])
for r in results:
rv.append(
Event(self.client, url=self.url.join(r), data=results[r][cdav.CalendarData.tag], parent=self))