-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to delete calendar #7
Comments
Sorry the slow response, seems like I've forgotten to set up email notifications on new issues here. This is probably related to #3 |
Have investigated here for iCloud (I guess this will be representative) Looks like caldav 0.5 sends a 'Depth' header on DELETE requests, which iCloud objects to. instead of
try this code fragment as a work around
Works for iCloud - will make a pull request with some other stuff also in the near future You may need to re-instate 'depth' for other calls - not sure yet. |
I'm looking into this now. The dirty-naïve solution, just add that "del client.headers['Depth']" in the request caused test failures, besides it feels completely wrong. Looking a bit into the code, I can't understand how 'Depth' got into the client headers at all. It does not belong there. Hm. |
I threw in a temporary assert that there should be no Depth in client.headers, and the test code passes. No depth header should be passed in the delete request. I don't understand this. |
Seems related to #3 |
I assume this bug was fixed with 72a089c. Closing. |
I can successfully create a calendar via
make_calendar
but I have not found a way to delete a calendar.calling
cal.delete()
result in an error.I do this:
which gives me:
Is this icloud specific or is delete broken or not the right way to do it ?
The text was updated successfully, but these errors were encountered: