Connection Module
This class is for interacting with webdav. Its main purpose is to be used by the client.py module but may also be used by developers who wish to use more direct webdav access.
Copy a resource from point a to point b on the server
| Parameters: |
|
|---|
Delete resource
| Parameters: |
|
|---|
Download file
| Parameters: |
|
|---|
Get a file lock
| Parameters: |
|
|---|
Get a list of property objects
| Parameters: |
|
|---|
Returns a list of resource objects.
Get a property object
| Parameters: |
|
|---|
Returns the property value as a string
Release a file lock
| Parameters: |
|
|---|
Send file
| Parameters: |
|
|---|
Connection object
Send a COPY request
| Parameters: |
|
|---|
Send a DELETE request
| Parameter: | path (String) – The path (without host) to the resource to delete |
|---|
Send a GET request NOTE: callback is not yet implimented. It’s purpose is to allow the user to specify a callback so that when x percent of the file has been retrieved, the callback will be executed. This makes allowances for users who may require a progress to be kept track of.
| Parameters: |
|
|---|
Send a LOCK request
| Parameter: | path (String) – Path (without host) to the resource to lock |
|---|
Send a MKCOL request
| Parameter: | path (String) – Path (without host) to the desired place of the new collection |
|---|
Send a PROPFIND request
| Parameters: |
|
|---|
This PUT request will put data files onto a webdav server. However, please note that due to the way in which httplib2 sends files, it is not currently possible to break a file up into chunks and read it in. In other words, the whole file has to be read into memory for sending. This could be problematic for large files.
| Parameters: |
|
|---|
Send an RMCOL request
| Parameter: | path (String) – Path (without host) to the collection to remove |
|---|
Send an UNLOCK request
| Parameters: |
|
|---|