mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Merge branch 'master' of git://gitorious.org/radicale/radicale
This commit is contained in:
commit
9d012fb76f
3 changed files with 25 additions and 5 deletions
|
@ -27,8 +27,6 @@ in them for XML requests (all but PUT).
|
|||
|
||||
"""
|
||||
|
||||
# TODO: Manage depth and calendars/collections
|
||||
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
from radicale import client, config, ical
|
||||
|
@ -153,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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue