wsgidav.util.add_property_response

wsgidav.util.add_property_response(multistatus_elem, href, prop_list)[source]

Append <response> element to <multistatus> element.

<prop> node depends on the value type:
  • str or unicode: add element with this content

  • None: add an empty element

  • etree.Element: add XML element as child

  • DAVError: add an empty element to an own <propstatus> for this status code

@param multistatus_elem: etree.Element @param href: global URL of the resource, e.g. ‘http://server:port/path’. @param prop_list: list of 2-tuples (name, value)