Support displayname and principal-URL tags in PROPFIND requests

This commit is contained in:
Guillaume Ayoub
2010-09-12 13:13:21 +02:00
parent 873dec1d5d
commit 71819cdb39
3 changed files with 26 additions and 18 deletions

View File

@ -229,6 +229,11 @@ class Calendar(object):
"""Etag from calendar."""
return '"%s"' % hash(self.text)
@property
def name(self):
"""Calendar name."""
return self.path.split(os.path.sep)[-1]
@property
def text(self):
"""Calendar as plain text."""