Ignore CTag and remove useless workaround for empty calendars.

This commit is contained in:
Guillaume Ayoub 2010-04-13 00:31:00 +02:00
parent d4bdc36550
commit 57eef3c5ab
2 changed files with 0 additions and 23 deletions

View file

@ -128,11 +128,6 @@ def propfind(path, xml_request, calendar):
element.text = calendar.etag
prop.append(element)
if _tag("CS", "getctag") in props:
element = ET.Element(_tag("CS", "getctag"))
element.text = calendar.ctag
prop.append(element)
status = ET.Element(_tag("D", "status"))
status.text = _response(200)
propstat.append(status)
@ -186,19 +181,6 @@ def report(path, xml_request, calendar):
path = hreference
items = calendar.events + calendar.todos
if not items:
# TODO: Read rfc4791-9.[6|10] to find a right answer
response = ET.Element(_tag("D", "response"))
multistatus.append(response)
href = ET.Element(_tag("D", "href"))
href.text = path
response.append(href)
status = ET.Element(_tag("D", "status"))
status.text = _response(204)
response.append(status)
for item in items:
response = ET.Element(_tag("D", "response"))
multistatus.append(response)