Interface t.w.d.i.IDAVResource(IResource):

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

Known subclasses: twisted.web2.dav.idav.IDAVPrincipalResource

Known implementations: twisted.web2.dav.resource.DAVResource
WebDAV resource.
Method isCollection Checks whether this resource is a collection resource.
Method findChildren Returns an iterable of child resources for the given depth.
Method hasProperty Checks whether the given property is defined on this resource.
Method readProperty Reads the given property on this resource.
Method writeProperty Writes the given property on this resource.
Method removeProperty Removes the given property from this resource.
Method listProperties
Method principalCollections Provides the URIs of collection resources which contain principal
Method accessControlList
Method supportedPrivileges

Inherited from IResource:

Method locateChild Locate another object which can be adapted to IResource.
Method renderHTTP Return an IResponse or a deferred which will fire an
def isCollection(): (source)
Checks whether this resource is a collection resource.
ReturnsTrue if this resource is a collection resource, False otherwise.
def findChildren(depth): (source)
Returns an iterable of child resources for the given depth. Because resources do not know their request URIs, chidren are returned as tuples (resource, uri), where resource is the child resource and uri is a URL path relative to this resource.
Parametersdepththe search depth (one of "0", "1", or "infinity")
Returnsan iterable of tuples (resource, uri).
def hasProperty(property, request): (source)
Checks whether the given property is defined on this resource.
Parameterspropertyan empty davxml.WebDAVElement instance or a qname tuple.
requestthe request being processed.
Returnsa deferred value of True if the given property is set on this resource, or False otherwise.
def readProperty(property, request): (source)
Reads the given property on this resource.
Parameterspropertyan empty davxml.WebDAVElement class or instance, or a qname tuple.
requestthe request being processed.
Returnsa deferred davxml.WebDAVElement instance containing the value of the given property.
RaisesHTTPError(containing a response with a status code of responsecode.CONFLICT) if property is not set on this resource.
def writeProperty(property, request): (source)
Writes the given property on this resource.
Parameterspropertya davxml.WebDAVElement instance.
requestthe request being processed.
Returnsan empty deferred which fires when the operation is completed.
RaisesHTTPError(containing a response with a status code of responsecode.CONFLICT) if property is a read-only property.
def removeProperty(property, request): (source)
Removes the given property from this resource.
Parameterspropertya davxml.WebDAVElement instance or a qname tuple.
requestthe request being processed.
Returnsan empty deferred which fires when the operation is completed.
RaisesHTTPError(containing a response with a status code of responsecode.CONFLICT) if property is a read-only property or if the property does not exist.
def listProperties(request): (source)
Parametersrequestthe request being processed.
Returnsa deferred iterable of qnames for all properties defined for this resource.
def principalCollections(): (source)
Provides the URIs of collection resources which contain principal resources which may be used in access control entries on this resource. (RFC 3744, section 5.8)
Returnsa sequence of URIs referring to collection resources which implement the DAV:principal-property-search REPORT.
def accessControlList(): (source)
Returnsthe davxml.ACL element containing the access control list for this resource.
def supportedPrivileges(): (source)
Returnsa sequence of the access control privileges which are supported by this resource.
API Documentation for twisted, generated by pydoctor.