Remove useless constant
This commit is contained in:
parent
150dd0c4cd
commit
8740357eb2
@ -349,8 +349,7 @@ class Application(
|
|||||||
xml_declaration=True)
|
xml_declaration=True)
|
||||||
return f.getvalue()
|
return f.getvalue()
|
||||||
|
|
||||||
def _webdav_error_response(self, human_tag,
|
def _webdav_error_response(self, human_tag, status=client.CONFLICT):
|
||||||
status=httputils.WEBDAV_PRECONDITION_FAILED[0]):
|
|
||||||
"""Generate XML error response."""
|
"""Generate XML error response."""
|
||||||
headers = {"Content-Type": "text/xml; charset=%s" % self._encoding}
|
headers = {"Content-Type": "text/xml; charset=%s" % self._encoding}
|
||||||
content = self._write_xml_content(xmlutils.webdav_error(human_tag))
|
content = self._write_xml_content(xmlutils.webdav_error(human_tag))
|
||||||
|
@ -38,9 +38,6 @@ NOT_FOUND = (
|
|||||||
CONFLICT = (
|
CONFLICT = (
|
||||||
client.CONFLICT, (("Content-Type", "text/plain"),),
|
client.CONFLICT, (("Content-Type", "text/plain"),),
|
||||||
"Conflict in the request.")
|
"Conflict in the request.")
|
||||||
WEBDAV_PRECONDITION_FAILED = (
|
|
||||||
client.CONFLICT, (("Content-Type", "text/plain"),),
|
|
||||||
"WebDAV precondition failed.")
|
|
||||||
METHOD_NOT_ALLOWED = (
|
METHOD_NOT_ALLOWED = (
|
||||||
client.METHOD_NOT_ALLOWED, (("Content-Type", "text/plain"),),
|
client.METHOD_NOT_ALLOWED, (("Content-Type", "text/plain"),),
|
||||||
"The method is not allowed on the requested resource.")
|
"The method is not allowed on the requested resource.")
|
||||||
|
Loading…
Reference in New Issue
Block a user