-
zimbra, url for caldav
Hey ( sorry for my english )
I use zimbra, which has caldav implementations caldav. I try create new event in calendar for my simple client ( which use caldav python library ). I dont now what type of url for save new event in caldav library python.
( sorry for my english )
-
My server is drdos.info, this is the url:
https://mydomain.com/dav/email_address
Doug
-
I'm using this URL:
myzimbra.domain.com/principals/users/user@domain.com/
-
correct url for caldav ( zimbra ) is,
https://<username>:<passwd>@example.com/dav/<username>/<CalendarName>
I search event, rename calendar name in this url but i cant save new event. I use Python and caldav library ( caldav 0.1.12 : Python Package Index ).
My example code,
Code:
# -*- coding: utf-8 -*-
from datetime import datetime
from caldav import DAVClient, Calendar, Event
calendar_url = "https://<username>:<passwd>@example.com/dav/<username>/<CalendarName>"
data = """BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Example Corp.//CalDAV Client//EN
BEGIN:VEVENT
UID:20010712T182145Z-123401@example.com
DTSTART:20120508T180000Z
DTEND:20120509T20000Z
SUMMARY: test
END:VEVENT
END:VCALENDAR
"""
client = DAVClient(calendar_url)
calendar = Calendar(client, calendar_url)
print '\n\n\n\n\n\n\n\n'
event = Event(client, data=data, parent=calendar)
event.save()
print event
print '\n\n\n\n\n\n\n\n'
In SOGO i can create event. When i save new event in zimbra, caldav return error Code:
caldav.lib.error.PutError
My english is not good, sorry.