summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2019-03-09 23:01:00 +0100
committerTobias Brox <tobias@redpill-linpro.com>2019-03-09 23:01:00 +0100
commit1a925df0c59501528b9b718dbd6e36d58c1e4d00 (patch)
tree346ad0b2cb01c821c54c40e80d3540024e64d11b
parentc7a5308f294479d7dc6808ce33d04e07635c36a1 (diff)
downloadpython-caldav-1a925df0c59501528b9b718dbd6e36d58c1e4d00.zip
ref https://github.com/python-caldav/caldav/issues/40 - apparently I can create calendars now
-rw-r--r--caldav/objects.py5
-rw-r--r--tests/conf.py6
2 files changed, 10 insertions, 1 deletions
diff --git a/caldav/objects.py b/caldav/objects.py
index e30ae43..c975252 100644
--- a/caldav/objects.py
+++ b/caldav/objects.py
@@ -219,7 +219,10 @@ class DAVObject(object):
response = self._query_properties(props, depth)
properties = self._handle_prop_response(response, props)
path = unquote(self.url.path)
- exchange_path = path + '/'
+ if path.endswith('/'):
+ exchange_path = path[:-1]
+ else:
+ exchange_path = path + '/'
if path in properties:
rc = properties[path]
diff --git a/tests/conf.py b/tests/conf.py
index 62bc9c9..c5eecf2 100644
--- a/tests/conf.py
+++ b/tests/conf.py
@@ -52,5 +52,11 @@ if not only_private:
"nopropfind": True,
"norecurring": True})
+ caldav_servers.append({
+ "url": "http://xandikos-caldav-servers.cloudapps.bitbit.net/",
+ "username": "user1",
+ "password": "password1"
+ })
+
proxy = "127.0.0.1:8080"
proxy_noport = "127.0.0.1"