From 1c5e02f4595d825efd3ea867c3f2fd866a774ba9 Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Thu, 29 Jul 2010 16:39:36 +0300 Subject: [PATCH] CalDAV: Enable the calendar-access option, as required by RFC4791 It is absolutely compulsory to have that option, or else clients will never use CalDAV on those folders. bzr revid: p_christ@hol.gr-20100729133936-j15ic4ok0yz4yjha --- addons/caldav/caldav_node.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/caldav/caldav_node.py b/addons/caldav/caldav_node.py index 66cca2eb1f3..d5765267056 100644 --- a/addons/caldav/caldav_node.py +++ b/addons/caldav/caldav_node.py @@ -59,6 +59,7 @@ class node_calendar_collection(nodes.node_dir): "http://calendarserver.org/ns/" : '_get_dav', } + http_options = { 'DAV': ['calendar-access'] } def get_dav_props(self, cr): return self.PROPS @@ -160,6 +161,8 @@ class node_calendar(nodes.node_class): "http://calendarserver.org/ns/" : '_get_dav', "urn:ietf:params:xml:ns:caldav" : '_get_caldav'} + http_options = { 'DAV': ['calendar-access'] } + def __init__(self,path, parent, context, calendar): super(node_calendar,self).__init__(path, parent,context) self.calendar_id = calendar.id @@ -348,6 +351,8 @@ class res_node_calendar(nodes.node_class): "http://calendarserver.org/ns/" : '_get_dav', "urn:ietf:params:xml:ns:caldav" : '_get_caldav'} + http_options = { 'DAV': ['calendar-access'] } + def __init__(self,path, parent, context, res_obj, res_model=None, res_id=None): super(res_node_calendar,self).__init__(path, parent, context) self.mimetype = 'text/calendar'