Mailing List Archive

Problem with python api caldav-0.4.0 on davical 1.1.3.1
Hello Davical-Team!

I have moved our davical server to version 1.1.3.1 now.
Was there any change in handling requests via caldav.php in this version?

With davical 1.1.3.1 our Scripts are not working any more.
(creating some sum-calenders from user-calendars for some groups)

We are using https://pypi.python.org/pypi/caldav/0.4.0 for this.
We like to read calendars whit a common user (which has read access to the collections).
For example the following command is working for the old and for the new server:

# wget https://USER1:pw1@server.de/davical/caldav.php/USER2/calendar

With python this looks like this:

URL = "https://USER1:pw1@server.de/davical/caldav.php/USER2/calendar"
client_sum = caldav.DAVClient(URL)
principal_sum = client_sum.principal()

When I print principal_sum, I get:
- on old server: [Calendar(http://server.de/davical/caldav.php/USER2/calendar/)]
- on new server: [Calendar(http://server.de/davical/caldav.php/USER1/calendar/)]

This means, that on the new server, I get the calendar from the user I'm using for authentication
and not the collection I like to have.

In python I also tried:
client_sum = caldav.DAVClient("https://server.de/davical/caldav.php/USER2/calendar", None, "USER1", "pass1")
There is no difference.

When I use wget with the same urls, it is working fine.
This could be also a bug in python caldav-0.4.0 of course

Has anybody used the python api with davical 1.1.3.1?

Thanks

Sebastian

--
Sebastian Kotthoff
Rechenzentrum
Universit├Ąt Mannheim
B6, 23-29; Building B; Room 1.10
68159 Mannheim

Tel: +49 621 181 2516
Fax: +49 621 181 2682