Procházet zdrojové kódy

Adding the calendar-home-set property management

Guillaume Ayoub před 15 roky
rodič
revize
dcabf4249e
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      radicale/xmlutils.py

+ 6 - 0
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)