Class t.w.d.h.PropertyStatusResponseQueue(object):

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

Stores a list of propstat elements for use in a Response in a MultiStatusResponse.
Method __init__
Method add Add a response.
Method error Convert any 2xx codes in the propstat responses to 424 Failed Dependency.
Method response Generate a response from the responses contained in the queue or, if
def __init__(self, method, uri, success_response): (source)
Parametersmethodthe name of the method generating the queue.
urithe href for the response.
success_responsethe status to return if no PropertyStatus are added to this queue.
def add(self, what, property): (source)
Add a response.
Parameterswhata status code or a Failure for the given path.
propertythe property whose status is being reported.
def error(self): (source)
Convert any 2xx codes in the propstat responses to 424 Failed Dependency.
def response(self): (source)
Generate a response from the responses contained in the queue or, if there are no such responses, return the success_response provided to __init__.
Returnsa davxml.PropertyStatusResponse.
API Documentation for twisted, generated by pydoctor.