Remove empty collection in propfind resourcetype (Sunbird-1.0b2 ready).

This commit is contained in:
Guillaume Ayoub 2009-12-29 20:15:31 +01:00
parent 97c1675741
commit 330283ef94

View File

@ -96,7 +96,6 @@ def propfind(xml_request, calendar, url):
if _tag("D", "resourcetype") in properties: if _tag("D", "resourcetype") in properties:
resourcetype = ET.Element(_tag("D", "resourcetype")) resourcetype = ET.Element(_tag("D", "resourcetype"))
resourcetype.append(ET.Element(_tag("D", "collection")))
resourcetype.append(ET.Element(_tag("C", "calendar"))) resourcetype.append(ET.Element(_tag("C", "calendar")))
prop.append(resourcetype) prop.append(resourcetype)