mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-07 18:30:54 +00:00
Restore the Lightning + anonymous calendars support
This commit is contained in:
parent
ec9e410659
commit
b8bcf65785
2 changed files with 8 additions and 5 deletions
|
@ -194,7 +194,7 @@ class Calendar(object):
|
|||
path = "/".join(attributes[:min(len(attributes), 2)])
|
||||
path = path.replace("/", os.sep)
|
||||
abs_path = os.path.join(FOLDER, path)
|
||||
if os.path.isdir(abs_path) or len(attributes) == 1:
|
||||
if os.path.isdir(abs_path):
|
||||
if depth == "0":
|
||||
result.append(cls(path, principal=True))
|
||||
else:
|
||||
|
@ -297,8 +297,6 @@ class Calendar(object):
|
|||
|
||||
def write(self, headers=None, items=None):
|
||||
"""Write calendar with given parameters."""
|
||||
if self.is_principal:
|
||||
return
|
||||
headers = headers or self.headers or (
|
||||
Header("PRODID:-//Radicale//NONSGML Radicale Server//EN"),
|
||||
Header("VERSION:2.0"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue