@@ -59,31 +59,31 @@ async def download(self, path, **kwargs):
5959 return await super ().get (path , on_error = XMLHandler (), ** kwargs )
6060
6161 @decorators .authenticated
62- async def propfind (self , path , depth ):
63- request = async_requests .PropfindRequest (self ._builder (path ), headers = {'depth' : str (depth )})
62+ async def propfind (self , path , depth , ** kwargs ):
63+ request = async_requests .PropfindRequest (self ._builder (path ), headers = {'depth' : str (depth )}, ** kwargs )
6464 response = await self .a_request (request , on_error = XMLHandler ())
6565 return await response .dav ()
6666
6767 @decorators .authenticated
68- async def mkcol (self , path ):
69- request = async_requests .MkcolRequest (self ._builder (path ))
68+ async def mkcol (self , path , ** kwargs ):
69+ request = async_requests .MkcolRequest (self ._builder (path ), ** kwargs )
7070 response = await self .a_request (request , on_error = XMLHandler ())
7171 return await response .text ()
7272
7373 @decorators .authenticated
74- async def copy (self , source , destination , * , overwrite = False ):
75- request = async_requests .CopyRequest (self ._builder (source ), headers = self ._webdav_headers (destination , overwrite ))
74+ async def copy (self , source , destination , * , overwrite = False , ** kwargs ):
75+ request = async_requests .CopyRequest (self ._builder (source ), headers = self ._webdav_headers (destination , overwrite ), ** kwargs )
7676 response = await self .a_request (request , on_error = XMLHandler ())
7777 return await response .xml ()
7878
7979 @decorators .authenticated
80- async def move (self , source , destination , * , overwrite = False ):
81- request = async_requests .MoveRequest (self ._builder (source ), headers = self ._webdav_headers (destination , overwrite ))
80+ async def move (self , source , destination , * , overwrite = False , ** kwargs ):
81+ request = async_requests .MoveRequest (self ._builder (source ), headers = self ._webdav_headers (destination , overwrite ), ** kwargs )
8282 response = await self .a_request (request , on_error = XMLHandler ())
8383 return await response .xml ()
8484
85- async def delete (self , path ): # pylint: disable=arguments-differ
86- response = await super ().delete (path , on_error = XMLHandler ())
85+ async def delete (self , path , ** kwargs ): # pylint: disable=arguments-differ
86+ response = await super ().delete (path , on_error = XMLHandler (), ** kwargs )
8787 return await response .text ()
8888
8989 def _webdav_headers (self , destination , overwrite ):
@@ -138,21 +138,21 @@ async def delete(self, path, **kwargs):
138138class AsyncExtended (AsyncXML ):
139139 """CTERA Schema"""
140140
141- async def get_multi (self , path , paths ):
142- return await self .database (path , 'get-multi' , paths )
141+ async def get_multi (self , path , paths , ** kwargs ):
142+ return await self .database (path , 'get-multi' , paths , ** kwargs )
143143
144- async def execute (self , path , name , param = None ): # schema method
145- return await self ._execute (path , 'user-defined' , name , param )
144+ async def execute (self , path , name , param = None , ** kwargs ): # schema method
145+ return await self ._execute (path , 'user-defined' , name , param , ** kwargs )
146146
147- async def database (self , path , name , param = None ): # schema method
148- return await self ._execute (path , 'db' , name , param )
147+ async def database (self , path , name , param = None , ** kwargs ): # schema method
148+ return await self ._execute (path , 'db' , name , param , ** kwargs )
149149
150- async def _execute (self , path , _type , name , param ):
150+ async def _execute (self , path , _type , name , param , ** kwargs ):
151151 data = Object ()
152152 data .type = _type
153153 data .name = name
154154 data .param = param
155- return await super ().post (path , data )
155+ return await super ().post (path , data , ** kwargs )
156156
157157
158158class AsyncAPI (AsyncExtended ):
@@ -262,31 +262,31 @@ def download(self, path, **kwargs):
262262 return super ().handle (path , on_error = XMLHandler (), ** kwargs )
263263
264264 @decorators .authenticated
265- def propfind (self , path , depth ):
266- request = async_requests .PropfindRequest (self ._builder (path ), headers = {'depth' : str (depth )})
265+ def propfind (self , path , depth , ** kwargs ):
266+ request = async_requests .PropfindRequest (self ._builder (path ), headers = {'depth' : str (depth )}, ** kwargs )
267267 response = self .request (request , on_error = XMLHandler ())
268268 return response .dav ()
269269
270270 @decorators .authenticated
271- def mkcol (self , path ):
272- request = async_requests .MkcolRequest (self ._builder (path ))
271+ def mkcol (self , path , ** kwargs ):
272+ request = async_requests .MkcolRequest (self ._builder (path ), ** kwargs )
273273 response = self .request (request , on_error = XMLHandler ())
274274 return response .text ()
275275
276276 @decorators .authenticated
277- def copy (self , source , destination , * , overwrite = False ):
278- request = async_requests .CopyRequest (self ._builder (source ), headers = self ._webdav_headers (destination , overwrite ))
277+ def copy (self , source , destination , * , overwrite = False , ** kwargs ):
278+ request = async_requests .CopyRequest (self ._builder (source ), headers = self ._webdav_headers (destination , overwrite ), ** kwargs )
279279 response = self .request (request , on_error = XMLHandler ())
280280 return response .xml ()
281281
282282 @decorators .authenticated
283- def move (self , source , destination , * , overwrite = False ):
284- request = async_requests .MoveRequest (self ._builder (source ), headers = self ._webdav_headers (destination , overwrite ))
283+ def move (self , source , destination , * , overwrite = False , ** kwargs ):
284+ request = async_requests .MoveRequest (self ._builder (source ), headers = self ._webdav_headers (destination , overwrite ), ** kwargs )
285285 response = self .request (request , on_error = XMLHandler ())
286286 return response .xml ()
287287
288- def delete (self , path ): # pylint: disable=arguments-differ
289- response = super ().delete (path , on_error = XMLHandler ())
288+ def delete (self , path , ** kwargs ): # pylint: disable=arguments-differ
289+ response = super ().delete (path , on_error = XMLHandler (), ** kwargs )
290290 return response .text ()
291291
292292 def _webdav_headers (self , destination , overwrite ):
@@ -347,27 +347,27 @@ def delete(self, path, **kwargs):
347347class Extended (XML ):
348348 """CTERA Schema"""
349349
350- def get_multi (self , path , paths ):
351- return self .database (path , 'get-multi' , paths )
350+ def get_multi (self , path , paths , ** kwargs ):
351+ return self .database (path , 'get-multi' , paths , ** kwargs )
352352
353- def show_multi (self , path , paths ):
354- print (Serializers .JSON (self .get_multi (path , paths ), no_log = False ))
353+ def show_multi (self , path , paths , ** kwargs ):
354+ print (Serializers .JSON (self .get_multi (path , paths , ** kwargs ), no_log = False ))
355355
356- def execute (self , path , name , param = None ): # schema method
357- return self ._execute (path , 'user-defined' , name , param )
356+ def execute (self , path , name , param = None , ** kwargs ): # schema method
357+ return self ._execute (path , 'user-defined' , name , param , ** kwargs )
358358
359- def database (self , path , name , param = None ): # schema method
360- return self ._execute (path , 'db' , name , param )
359+ def database (self , path , name , param = None , ** kwargs ): # schema method
360+ return self ._execute (path , 'db' , name , param , ** kwargs )
361361
362- def add (self , path , param = None ):
363- return self .database (path , 'add' , param )
362+ def add (self , path , param = None , ** kwargs ):
363+ return self .database (path , 'add' , param , ** kwargs )
364364
365- def _execute (self , path , _type , name , param ):
365+ def _execute (self , path , _type , name , param , ** kwargs ):
366366 data = Object ()
367367 data .type = _type
368368 data .name = name
369369 data .param = param
370- return super ().post (path , data )
370+ return super ().post (path , data , ** kwargs )
371371
372372
373373class API (Extended ):
0 commit comments