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:
parent
41741ba989
commit
6545bc8273
2 changed files with 14 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue