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

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

Known implementations: twisted.web2.dav.resource.DAVResource

WebDAV resource.

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
37 Method isCollection Checks whether this resource is a collection resource.
44 Method findChildren Returns an iterable of child resources for the given depth.
54 Method hasProperty Checks whether the given property is defined on this resource.
64 Method readProperty Reads the given property on this resource.
77 Method writeProperty Writes the given property on this resource.
87 Method removeProperty Removes the given property from this resource.
98 Method listProperties
105 Method principalCollections Provides the URIs of collection resources which contain principal
114 Method accessControlList
120 Method supportedPrivileges

Inherited from IResource:

Line # Kind Name Docs
20 Method locateChild Locate another object which can be adapted to IResource.
37 Method renderHTTP Return an IResponse or a deferred which will fire an
Line # Kind Name Docs
114 Method accessControlList
44 Method findChildren Returns an iterable of child resources for the given depth.
54 Method hasProperty Checks whether the given property is defined on this resource.
37 Method isCollection Checks whether this resource is a collection resource.
98 Method listProperties
20 Method locateChild Locate another object which can be adapted to IResource.
105 Method principalCollections Provides the URIs of collection resources which contain principal
64 Method readProperty Reads the given property on this resource.
87 Method removeProperty Removes the given property from this resource.
37 Method renderHTTP Return an IResponse or a deferred which will fire an
120 Method supportedPrivileges
77 Method writeProperty Writes the given property on this resource.
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 at 2008-02-28 08:53:09.