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:
parent
2e1b51e3c1
commit
72c57a042d
4 changed files with 21 additions and 4 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue