Skip to content
Snippets Groups Projects
Commit b5985b99 authored by magicfelix's avatar magicfelix
Browse files

[DAV] Fix unknown handling

parent 73b11a95
No related branches found
No related tags found
1 merge request!1147Implement read-only CalDAV and CardDAV
......@@ -75,11 +75,7 @@ class ElementHandler(RegistryObject, is_registry=True):
response.handle_unknown(self.name)
for child in self.children:
if child is not None:
child.process(stage, base, response)
else:
if stage == "xml":
response.handle_unknown(name)
child.process(stage, base, response)
base.current_xml = previous_xml
......@@ -229,9 +225,9 @@ class NotImplementedObject:
def __init__(self, xml_sub):
self.xml_sub = xml_sub
def process(self, stage, base, response = None):
pass
def process(self, stage, base, response=None):
if stage == "xml" and response is not None:
response.handle_unknown(self.xml_sub)
class NotFoundObject:
......@@ -327,10 +323,7 @@ class QueryBase:
base.current_xml = response.propstats[200]
for child in self.children:
if child is not None:
child.process(stage, base, response)
elif stage == "xml":
response.handle_unknown(name)
child.process(stage, base, response)
base.current_xml = previous_xml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment