mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Out-of-the-box simple configuration
git-svn-id: http://svn.32rwr.info/radicale/trunk@5 74e4794c-479d-4a33-9dda-c6c359d70f12
This commit is contained in:
parent
5e1a4d4131
commit
e87d37703d
7 changed files with 72 additions and 13 deletions
|
@ -171,6 +171,19 @@ def report(xmlRequest, calendar, url):
|
|||
objects.extend(ical.events(calendar.vcalendar()))
|
||||
objects.extend(ical.todos(calendar.vcalendar()))
|
||||
|
||||
if not objects:
|
||||
# TODO: Read rfc4791-9.[6|10] to find a right answer
|
||||
response = ET.Element(_tag("D", "response"))
|
||||
multistatus.append(response)
|
||||
|
||||
href = ET.Element(_tag("D", "href"))
|
||||
href.text = url
|
||||
response.append(href)
|
||||
|
||||
status = ET.Element(_tag("D", "status"))
|
||||
status.text = config.get("status", "204")
|
||||
response.append(status)
|
||||
|
||||
for obj in objects:
|
||||
# TODO: Use the hreference to read data and create href.text
|
||||
# We assume here that hreference is url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue