From dcabf4249e755276526f643336599df77f194db8 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Wed, 29 Dec 2010 19:10:56 +0100 Subject: [PATCH] Adding the calendar-home-set property management --- radicale/xmlutils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 25f72e5a..35071a3b 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -151,6 +151,12 @@ def propfind(path, xml_request, calendar, depth, request): element.text = "%s://%s%s" % ( request.server.PROTOCOL, request.headers["Host"], request.path) + elif tag == _tag("C", "calendar-home-set"): + tag = ET.Element(_tag("D", "href")) + tag.text = "%s://%s%s" % ( + request.server.PROTOCOL, request.headers["Host"], + request.path) + element.append(tag) prop.append(element)