[Davical-general] Problem with python api caldav-0.4.0 on davical

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[Davical-general] Problem with python api caldav-0.4.0 on davical

Hello Davical-Team!

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

With davical 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@.../davical/caldav.php/USER2/calendar

With python this looks like this:

URL = "https://USER1:pw1@.../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



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

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

Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
Davical-general mailing list
[hidden email]

smime.p7s (6K) Download Attachment