add support for optional arguments
This commit is contained in:
@@ -1687,7 +1687,7 @@ permissions: RrWw""")
|
|||||||
</C:free-busy-query>""", 400, is_xml=False)
|
</C:free-busy-query>""", 400, is_xml=False)
|
||||||
|
|
||||||
def _report_sync_token(
|
def _report_sync_token(
|
||||||
self, calendar_path: str, sync_token: Optional[str] = None
|
self, calendar_path: str, sync_token: Optional[str] = None, **kwargs
|
||||||
) -> Tuple[str, RESPONSES]:
|
) -> Tuple[str, RESPONSES]:
|
||||||
sync_token_xml = (
|
sync_token_xml = (
|
||||||
"<sync-token><![CDATA[%s]]></sync-token>" % sync_token
|
"<sync-token><![CDATA[%s]]></sync-token>" % sync_token
|
||||||
@@ -1699,7 +1699,7 @@ permissions: RrWw""")
|
|||||||
<getetag />
|
<getetag />
|
||||||
</prop>
|
</prop>
|
||||||
%s
|
%s
|
||||||
</sync-collection>""" % sync_token_xml)
|
</sync-collection>""" % sync_token_xml, **kwargs)
|
||||||
xml = DefusedET.fromstring(answer)
|
xml = DefusedET.fromstring(answer)
|
||||||
if status in (403, 409):
|
if status in (403, 409):
|
||||||
assert xml.tag == xmlutils.make_clark("D:error")
|
assert xml.tag == xmlutils.make_clark("D:error")
|
||||||
|
|||||||
Reference in New Issue
Block a user