1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

Merge commit 'refs/merge-requests/6' of gitorious.org:radicale/radicale into merge-requests/6

This commit is contained in:
Guillaume Ayoub 2011-04-10 18:37:23 +02:00
commit 6c65cc1539
4 changed files with 21 additions and 4 deletions

View file

@ -177,7 +177,12 @@ class CalendarHTTPHandler(server.BaseHTTPRequestHandler):
attributes = posixpath.normpath(self.path.strip("/")).split("/")
if len(attributes) >= 2:
path = "%s/%s" % (attributes[0], attributes[1])
return ical.Calendar(path)
elif len(attributes) == 1: # no owner
path = attributes[0]
else:
return
return ical.Calendar(path)
def _decode(self, text):
"""Try to decode text according to various parameters."""