mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
The owner field should be an URL. Fixes delays in iCal.
This commit is contained in:
parent
8bcdb5b1dc
commit
5b9180c295
2 changed files with 17 additions and 7 deletions
|
@ -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('//', '/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue