The owner field should be an URL. Fixes delays in iCal.

This commit is contained in:
Lukasz Langa
2011-06-01 15:30:47 +02:00
parent 8bcdb5b1dc
commit 5b9180c295
2 changed files with 17 additions and 7 deletions

View File

@ -389,6 +389,13 @@ class Calendar(object):
with open(props_path, 'w') as prop_file:
json.dump(properties, prop_file)
@property
def owner_url(self):
if self.owner:
return '/{}/'.format(self.owner).replace('//', '/')
else:
return None
@property
def url(self):
return '/{}/'.format(self.local_path).replace('//', '/')