An object representing a web resource.
Methods
|
|
|
|
__enc_formdata
|
__enc_formdata ( self, args={} )
|
|
__enc_multipart
|
__enc_multipart ( self, args={} )
|
|
__get_headers
|
__get_headers ( self, kw={} )
|
|
__getattr__
|
__getattr__ ( self, name )
|
|
__init__
|
__init__ (
self,
url,
username=None,
password=None,
)
|
|
__set_authtoken
|
__set_authtoken (
self,
headers,
atype='Basic',
)
|
|
__snd_request
|
__snd_request (
self,
method,
uri,
headers={},
body='',
eh=1,
)
|
|
__str__
|
__str__ ( self )
|
|
allprops
|
allprops ( self, depth=0 )
|
|
copy
|
copy (
self,
dest,
depth='infinity',
overwrite=0,
**kw,
)
Copy a resource to the specified destination.
|
|
delete
|
delete ( self, **kw )
|
|
delprops
|
delprops ( self, *names )
|
|
get
|
get ( self, **kw )
|
|
getprops
|
getprops ( self, *names )
|
|
head
|
head ( self, **kw )
|
|
lock
|
lock (
self,
scope='exclusive',
type='write',
owner='',
depth='infinity',
timeout='Infinite',
**kw,
)
Create a lock with the specified scope, type, owner, depth
and timeout on the resource. A locked resource prevents a principal
without the lock from executing a PUT, POST, PROPPATCH, LOCK, UNLOCK,
MOVE, DELETE, or MKCOL on the locked resource.
|
|
mkcol
|
mkcol ( self, **kw )
|
|
move
|
move (
self,
dest,
depth='infinity',
overwrite=0,
**kw,
)
Move a resource to the specified destination.
|
|
options
|
options ( self, **kw )
|
|
post
|
post ( self, **kw )
|
|
propfind
|
propfind (
self,
body='',
depth=0,
**kw,
)
|
|
propnames
|
propnames ( self, depth=0 )
|
|
proppatch
|
proppatch (
self,
body,
**kw,
)
|
|
put
|
put (
self,
file='',
content_type='',
content_enc='',
isbin=regex.compile( '[\0-\6\177-\277]' ),
**kw,
)
|
|
setprops
|
setprops ( self, **props )
|
|
trace
|
trace ( self, **kw )
|
|
unlock
|
unlock (
self,
token,
**kw,
)
Remove the lock identified by token from the resource and all
other resources included in the lock. If all resources which have
been locked under the submitted lock token can not be unlocked the
unlock method will fail.
|
|