1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

Add getetag and getcontenttype support for propfind requests (Sunbird 1.0 ready).

This commit is contained in:
Guillaume Ayoub 2009-12-09 12:56:03 +01:00
parent 41741ba989
commit 6545bc8273
2 changed files with 14 additions and 0 deletions

View file

@ -60,6 +60,10 @@ class Calendar(object):
"""Return unicode calendar from the calendar."""
return unicode(support.read(self.cal), self.encoding)
def etag(self):
"""Return etag from calendar."""
return hash_tag(self.vcalendar())
class Event(object):
"""Internal event class."""
def __init__(self, vcalendar):