@@ -1782,6 +1782,8 @@ def get_objects_by_sync_token(
17821782 the server truly supports sync tokens.
17831783 """
17841784 if self .is_async_client :
1785+ ## TODO: lots of code duplication here. It's difficult, since there is a lot of
1786+ ## forth and back between the client and the server in this method.
17851787 return self ._async_get_objects_by_sync_token (sync_token , load_objects , disable_fallback )
17861788
17871789 ## Check if we should attempt to use sync tokens
@@ -1914,6 +1916,10 @@ async def _async_get_objects_by_sync_token(
19141916 disable_fallback : bool = False ,
19151917 ) -> "SynchronizableCalendarObjectCollection" :
19161918 """Async implementation of get_objects_by_sync_token."""
1919+
1920+ ## TODO: lots of code duplication here. It's difficult, since there is a lot of
1921+ ## forth and back between the client and the server in this method.
1922+
19171923 use_sync_token = True
19181924 sync_support = self .client .features .is_supported ("sync-token" , return_type = dict )
19191925 if sync_support .get ("support" ) == "unsupported" :
@@ -1933,6 +1939,8 @@ async def _async_get_objects_by_sync_token(
19331939 (response , objects ) = await self ._request_report_build_resultlist (
19341940 root , props = [dav .GetEtag ()], no_calendardata = True
19351941 )
1942+ ## TODO: look more into this, I think sync_token should be directly available through response object
1943+ ## we should probably not access response.tree directly
19361944 try :
19371945 sync_token = response .sync_token
19381946 except AttributeError :
0 commit comments