a dictionary in this case the keys are either: String in which case it is a lock token for the no-tag-list production. State represents the state that a resource must be in in order for the method to be invoked. The state arguement, used in several of the methods, is defined as follows: Move src, dst, overwritep=1, depth="infinity", live=, state:Īuthenticate user, password: Authenticates the client to the server. Unlock uri, token unlocks a lock, given the URI and the tokenĬopy src, dst, overwritep=1, depth=0, live=, state: copies a resource from src to dst. The return value is an XML element for the lock discovery property. Ownerinfo is either None, or an XML href element.ĭepth must be either the string "0" or the string "infinity". Timeouts is a sequence of timeouts, each of which is a string. Lockscope must be LockScope.Exclusive or LockScope.Shared, Locktype must be LockType.Write or LockType.Read. MakeCollection uri, state Correponds to MKCOL. delList is a sequence of XML elements where the name is the name of a propery to be deleted, and the value us empty. setList is a sequence of XML elements, where the element name is the name of the property and the value is the property value. It sets and deletes a set of properties, atomically. PropPatch uri, setList, delList, state This corresponds to the PROPPATCH method. This corresponds to the WebDAV PROPFIND method. GetProps uri, pnames, depth returns a set of response XML elements. GetProp uri, pname returns a single property of the resource PutFile uri, pathname, mediatype, state For convenience, an alternate form of Put where the body is specifie as a pathname of a file in the local file system. Put uri, body, mediatype, state stores an arbitrary string (body) on the URI. Head uri returns the dictionary of headers. Get uri returns a stream and a dictionary of headers The DAV class defines the following methods The constructor requires twoĪrguments, the host name (string) and the port (integer).ĭs = davlib.DAV ('', 8080)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |