2 commits - cyruslib.py

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Wed May 22 13:29:57 CEST 2013


 cyruslib.py |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 7fa0dbb264dcf1f95d3166d96ac997a3f368a579
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Wed May 22 13:28:46 2013 +0200

    Remove erroneous print statement

diff --git a/cyruslib.py b/cyruslib.py
index fe8ae0b..b144156 100644
--- a/cyruslib.py
+++ b/cyruslib.py
@@ -673,9 +673,6 @@ class CYRUS:
                     continue
 
         for annotation in annotations:
-
-            print annotation
-
             folder = annotation.split('"')[1].replace('"','')
 
             if not ann.has_key(folder):


commit a931de01e4c48cfd8812867fde8d3a79b6bc9ddc
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Wed May 22 13:27:06 2013 +0200

    Correct parsing folder names with spaces (#1887)

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]
 





More information about the commits mailing list