Explicitely create collections on GET requests

This commit is contained in:
Guillaume Ayoub
2012-02-23 15:28:45 +01:00
parent 128a20714b
commit 22e4e3764c
3 changed files with 16 additions and 5 deletions

View File

@ -96,10 +96,6 @@ class Collection(ical.Collection):
@property
def last_modified(self):
# Create collection if needed
if not os.path.exists(self._path):
self.write()
modification_time = time.gmtime(os.path.getmtime(self._path))
return time.strftime("%a, %d %b %Y %H:%M:%S +0000", modification_time)