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

Allow missing owner

This commit is contained in:
René 'Necoro' Neumann 2011-03-25 01:03:53 +01:00
parent 2e1b51e3c1
commit 72c57a042d
4 changed files with 21 additions and 4 deletions

View file

@ -129,7 +129,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."""