MKCALENDAR now actually creates the calendar.

This commit is contained in:
Lukasz Langa
2011-05-24 16:12:35 +02:00
parent b230601ee2
commit 85e283830a
3 changed files with 50 additions and 2 deletions

View File

@ -33,7 +33,7 @@ from radicale import config
FOLDER = os.path.expanduser(config.get("storage", "folder"))
# This function overrides the builtin ``open`` function for this module
# pylint: disable=W0622
@ -242,7 +242,7 @@ class Calendar(object):
# Create folder if absent
if not os.path.exists(os.path.dirname(self.path)):
os.makedirs(os.path.dirname(self.path))
text = serialize(headers, items)
return open(self.path, "w").write(text)