Attention
You are looking at outdated documentation for version 2.x. A newer version is available.
wsgidav.samples.virtual_dav_provider.VirtualArtifact¶
-
class
wsgidav.samples.virtual_dav_provider.VirtualArtifact(path, environ, data)[source]¶ Bases:
wsgidav.samples.virtual_dav_provider._VirtualNonCollectionA virtual file, containing resource descriptions.
VirtualArtifact.beginWrite([contentType])Open content as a stream for writing. VirtualArtifact.copyMoveSingle(destPath, isMove)Copy or move this resource to destPath (non-recursive). VirtualArtifact.createCollection(name)Create a new collection as member of self. VirtualArtifact.createEmptyResource(name)Create and return an empty (length-0) resource as member of self. VirtualArtifact.delete()Remove this resource (recursive). VirtualArtifact.endWrite(withErrors)Called when PUT has finished writing. VirtualArtifact.finalizeHeaders(environ, …)Perform custom operations on the response headers. VirtualArtifact.getContent()Open content as a stream for reading. VirtualArtifact.getContentLength()Returns the byte length of the content. VirtualArtifact.getContentType()Contains the Content-Type header returned by a GET without accept headers. VirtualArtifact.getCreationDate()Records the time and date the resource was created. VirtualArtifact.getDescendants([…])Return a list _DAVResource objects of a collection (children, grand-children, …). VirtualArtifact.getDirectoryInfo()Return a list of dictionaries with information for directory rendering. VirtualArtifact.getDisplayInfo()Return additional info dictionary for displaying (optional). VirtualArtifact.getDisplayName()Provides a name for the resource that is suitable for presentation to a user. VirtualArtifact.getEtag()See http://www.webdav.org/specs/rfc4918.html#PROPERTY_getetag VirtualArtifact.getHref()Convert path to a URL that can be passed to XML responses. VirtualArtifact.getLastModified()Contains the Last-Modified header returned by a GET method without accept headers. VirtualArtifact.getMemberList()Return a list of direct members (_DAVResource or derived objects). VirtualArtifact.getMemberNames()Return list of (direct) collection member names (UTF-8 byte strings). VirtualArtifact.getPreferredPath()Return preferred mapping for a resource mapping. VirtualArtifact.getProperties(mode[, nameList])Return properties as list of 2-tuples (name, value). VirtualArtifact.getPropertyNames(isAllProp)Return list of supported property names in Clark Notation. VirtualArtifact.getPropertyValue(propname)Return the value of a property. VirtualArtifact.getRefUrl()Return the quoted, absolute, unique URL of a resource, relative to appRoot. VirtualArtifact.handleCopy(destPath, …)Handle a COPY request natively. VirtualArtifact.handleDelete()Handle a DELETE request natively. VirtualArtifact.handleMove(destPath)Handle a MOVE request natively. VirtualArtifact.isLocked()Return True, if URI is locked. VirtualArtifact.moveRecursive(destPath)Move this resource and members to destPath. VirtualArtifact.preventLocking()Return True, to prevent locking. VirtualArtifact.removeAllLocks(recursive)VirtualArtifact.removeAllProperties(recursive)Remove all associated dead properties. VirtualArtifact.resolve(scriptName, pathInfo)Return a _DAVResource object for the path (None, if not found). VirtualArtifact.setPropertyValue(propname, value)Set a property value or remove a property. VirtualArtifact.supportContentLength()Return True, if this resource supports Content-Length. VirtualArtifact.supportEtag()Return True, if this resource supports ETags. VirtualArtifact.supportModified()Return True, if this resource supports last modified dates. VirtualArtifact.supportRanges()Return True, if this non-resource supports Range on GET requests. VirtualArtifact.supportRecursiveDelete()Return True, if delete() may be called on non-empty collections (see comments there). VirtualArtifact.supportRecursiveMove(destPath)Return True, if moveRecursive() is available (see comments there).