Fix the href URL in propfind

This commit is contained in:
Guillaume Ayoub 2011-06-30 18:05:24 +02:00
parent 49ba07db5a
commit 3d7f07dc0c

View File

@ -201,7 +201,7 @@ def _propfind_response(path, item, props, user):
response = ET.Element(_tag("D", "response")) response = ET.Element(_tag("D", "response"))
href = ET.Element(_tag("D", "href")) href = ET.Element(_tag("D", "href"))
href.text = item.local_path if is_calendar else "%s/%s" % (path, item.name) href.text = item.url if is_calendar else "%s/%s" % (path, item.name)
response.append(href) response.append(href)
propstat404 = ET.Element(_tag("D", "propstat")) propstat404 = ET.Element(_tag("D", "propstat"))