Table of Contents

Class: Resource Zope-2.2.1-src/lib/python/webdav/client.py

An object representing a web resource.

Methods   
__enc_formdata
__enc_multipart
__get_headers
__getattr__
__init__
__set_authtoken
__snd_request
__str__
allprops
copy
delete
delprops
get
getprops
head
lock
mkcol
move
options
post
propfind
propnames
proppatch
put
setprops
trace
unlock
  __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,
        )

Exceptions   
ValueError
  __set_authtoken 
__set_authtoken (
        self,
        headers,
        atype='Basic',
        )

Exceptions   
ValueError
  __snd_request 
__snd_request (
        self,
        method,
        uri,
        headers={},
        body='',
        eh=1,
        )

Exceptions   
'NotAvailable'
  __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 )

Exceptions   
ValueError
  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.

Exceptions   
ValueError
  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,
        )

Exceptions   
ValueError
  setprops 
setprops ( self,  **props )

Exceptions   
ValueError
  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.


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6