1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Merge ical/support/calendar modules.

This commit is contained in:
Guillaume Ayoub 2010-02-10 23:52:50 +01:00
parent 21a743fcde
commit 9a07ec71d3
8 changed files with 229 additions and 366 deletions

View file

@ -140,6 +140,7 @@ def propfind(xml_request, calendar, url):
def put(ical_request, calendar, url, obj):
"""Read PUT requests."""
# TODO: use url to set hreference
if obj:
# PUT is modifying obj
calendar.replace(obj, ical_request)
@ -174,11 +175,10 @@ def report(xml_request, calendar, url):
# is that really what is needed?
# Read rfc4791-9.[6|10] for info
for hreference in hreferences:
headers = ical.headers(calendar.vcalendar)
timezones = ical.timezones(calendar.vcalendar)
headers = ical.headers(calendar.text)
timezones = ical.timezones(calendar.text)
objects = \
ical.events(calendar.vcalendar) + ical.todos(calendar.vcalendar)
objects = ical.events(calendar.text) + ical.todos(calendar.text)
if not objects:
# TODO: Read rfc4791-9.[6|10] to find a right answer