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