Fix Property tag attribute fetching for named properties. The split on
authorJulien Kerihuel <j.kerihuel@openchange.org>
Tue, 1 Feb 2011 15:14:25 +0000 (15:14 +0000)
committerJulien Kerihuel <j.kerihuel@openchange.org>
Tue, 1 Feb 2011 15:14:25 +0000 (15:14 +0000)
':' was applied to the entire string. However some entries were using
urn: or DAV: or even http:.

This fix splits but with a maxCount of 1, preserving the remaining
string upon success.

script/makepropslist.py

index bcc9deb57a503deaf09278fc8000750110362f42..5a1b50da9072efb5fa4bca79fb1599e2b975bd61 100755 (executable)
@@ -346,8 +346,8 @@ def make_properties_list(propsfilename):
                        propertyinfo["CanonicalName"] = canonicalname
 
                if line.strip().startswith("Property name:"):
-                       propertyname = line.strip().split(":")[1].strip()
-                       propertyinfo["PropertyName"] = propertyname
+                       propertyname = line.split(":", 1)
+                       propertyinfo["PropertyName"] = propertyname[1].strip()
 
                if line.strip().startswith("Description:"):
                        description = line.strip().split(":")[1].strip()