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:27:06 +0200
commita931de01e4c48cfd8812867fde8d3a79b6bc9ddc (patch)
treeab2a7bd0b35c1601e04cda3e792ac304f09c5b3b
parenta0857553dad6fa89bbbacf52484c3f15060fd762 (diff)
downloadpykolab-a931de01e4c48cfd8812867fde8d3a79b6bc9ddc.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 460cf82..fe8ae0b 100644
--- a/cyruslib.py
+++ b/cyruslib.py
@@ -674,12 +674,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]