Class t.w.d.s.DAVFile(DAVResource, File):

Part of twisted.web2.dav.static View Source View In Hierarchy

WebDAV-accessible File resource.

Extends twisted.web2.static.File to handle WebDAV methods.
Method __init__
Method __repr__ Undocumented
Method davComplianceClasses This implementation raises NotImplementedError.
Method deadProperties Provides internal access to the WebDAV dead property store. You
Method isCollection See IDAVResource.isCollection.
Method findChildren See IDAVResource.findChildren.
Method supportedPrivileges See IDAVResource.supportedPrivileges.
Method ignoreExt Does nothing; doesn't apply to this subclass.
Method createSimilarFile Undocumented

Inherited from DAVResource:

Method principalCollections See IDAVResource.principalCollections.
Method accessControlList See IDAVResource.accessControlList.
Method renderHTTP See resource.RenderMixIn.renderHTTP.

Inherited from DAVPropertyMixIn (via DAVResource):

Method hasProperty See IDAVResource.hasProperty.
Method readProperty See IDAVResource.readProperty.
Method writeProperty See IDAVResource.writeProperty.
Method removeProperty See IDAVResource.removeProperty.
Method listProperties See IDAVResource.listProperties.
Method listAllprop Some DAV properties should not be returned to a DAV:allprop query.
Method hasDeadProperty Same as hasProperty, but bypasses the live property store and checks
Method readDeadProperty Same as readProperty, but bypasses the live property store and reads
Method writeDeadProperty Same as writeProperty, but bypasses the live property store and
Method removeDeadProperty Same as removeProperty, but bypasses the live property store and acts
Method contentType
Method displayName

Inherited from MetaDataMixin (via DAVResource, DAVPropertyMixIn):

Method etag
Method lastModified
Method creationDate
Method contentLength
Method contentEncoding
Method exists

Inherited from StaticRenderMixin (via DAVResource):

Method checkPreconditions Checks all preconditions imposed by this resource upon a request made

Inherited from RenderMixin (via DAVResource, StaticRenderMixin):

Method allowedMethods
Method http_OPTIONS Respond to a OPTIONS request.
Method http_TRACE Respond to a TRACE request.
Method http_HEAD Respond to a HEAD request.
Method http_GET Respond to a GET request.
Method render Subclasses should implement this method to do page rendering.

Inherited from MetaDataMixin (via DAVResource, StaticRenderMixin):

Method etag
Method lastModified
Method creationDate
Method contentLength
Method contentType
Method contentEncoding
Method displayName
Method exists

Inherited from File:

Method _getContentTypes Undocumented
Method exists
Method etag
Method lastModified
Method creationDate
Method contentLength
Method _initTypeAndEncoding Undocumented
Method contentType
Method contentEncoding
Method displayName
Method directoryListing Undocumented
Method putChild Register a child with the given name with this resource.
Method getChild Look up a child resource.
Method listChildren
Method locateChild See IResource.locateChild.
Method renderHTTP See resource.RenderMixIn.renderHTTP.
Method render You know what you doing.

Inherited from StaticRenderMixin (via File):

Method checkPreconditions Checks all preconditions imposed by this resource upon a request made

Inherited from RenderMixin (via File, StaticRenderMixin):

Method allowedMethods
Method http_OPTIONS Respond to a OPTIONS request.
Method http_TRACE Respond to a TRACE request.
Method http_HEAD Respond to a HEAD request.
Method http_GET Respond to a GET request.
def __init__(self, path, defaultType='text/plain', indexNames=None): (source)
Parameterspaththe path of the file backing this resource.
defaultTypethe default mime type (as a string) for this resource and (eg. child) resources derived from it.
indexNamesa sequence of index file names.
aclan IDAVAccessControlList with the .
def __repr__(self): (source)
Undocumented
def davComplianceClasses(self): (source)
This implementation raises NotImplementedError.
Returnsa sequence of strings denoting WebDAV compliance classes. For example, a DAV level 2 server might return ("1", "2").
def deadProperties(self): (source)

Provides internal access to the WebDAV dead property store. You probably shouldn't be calling this directly if you can use the property accessors in the IDAVResource API instead. However, a subclass must override this method to provide it's own dead property store.

This implementation returns an instance of NonePropertyStore, which cannot store dead properties. Subclasses must override this method if they wish to store dead properties.
Returnsa dict-like object from which one can read and to which one can write dead properties. Keys are qname tuples (ie. (namespace, name)) as returned by davxml.WebDAVElement.qname() and values are davxml.WebDAVElement instances.
def isCollection(self): (source)
See IDAVResource.isCollection.
def findChildren(self, depth): (source)
See IDAVResource.findChildren.
def supportedPrivileges(self): (source)

See IDAVResource.supportedPrivileges.

This implementation returns a supported privilege set containing only the DAV:all privilege.
def ignoreExt(self, ext): (source)
Does nothing; doesn't apply to this subclass.
def createSimilarFile(self, path): (source)
Undocumented
API Documentation for twisted, generated by pydoctor.