summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-22 13:27:06 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-05-22 13:29:11 +0200
commitad600c78ea858f600055dd24cece64a3440e0dea (patch)
treea367b9efd0b470480e00d404a93eaae62a984fc3
parent70d9da4a57441a752fa0a8098aca345f91e6d3c6 (diff)
downloadpykolab-ad600c78ea858f600055dd24cece64a3440e0dea.tar.gz
Correct parsing folder names with spaces (#1887)
-rw-r--r--cyruslib.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cyruslib.py b/cyruslib.py
index 27ce418..c8a8d4f 100644
--- a/cyruslib.py
+++ b/cyruslib.py
@@ -673,12 +673,14 @@ class CYRUS:
for annotation in annotations:
- folder = annotation.split()[0].replace('"','')
+ print annotation
+
+ folder = annotation.split('"')[1].replace('"','')
if not ann.has_key(folder):
ann[folder] = {}
- key = annotation.split()[1].replace('"','').replace("'","")
+ key = annotation.split('"')[3].replace('"','').replace("'","")
_annot = annotation.split('(')[1].split(')')[0]