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