From 552870b10509c42a7435371260dffe77a0887a57 Mon Sep 17 00:00:00 2001 From: Tobias Brox Date: Wed, 9 Mar 2022 18:29:05 +0100 Subject: Test code for the scheduling extensions still fails towards the Baikal server, but at least one obvious bug has been fixed. Updates https://github.com/python-caldav/caldav/issues/163 --- caldav/objects.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/caldav/objects.py b/caldav/objects.py index 09a18b5..390c5f8 100644 --- a/caldav/objects.py +++ b/caldav/objects.py @@ -1140,12 +1140,16 @@ class ScheduleMailbox(Calendar): except: logging.debug("caldav server does not seem to support a sync-token REPORT query on a scheduling mailbox") error.assert_('google' in str(self.url)) - self._items = self.children() + self._items = [CalendarObjectResource(url=x[0], client=self.client) for x in self.children()] + for x in self._items: + x.load() else: try: self._items.sync() except: - self._items = self.children() + self._items = [CalendarObjectResource(url=x[0], client=self.client) for x in self.children()] + for x in self._items: + x.load() return self._items ## TODO: work in progress -- cgit v1.2.3