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
This commit is contained in:
parent
4ab6bf860c
commit
1c5e02f459
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue