[commits] r191 - selinux-site/trunk/buildout

tim at mail.se.linux.org tim at mail.se.linux.org
Ons Apr 2 19:54:57 CEST 2008


Author: tim
Date: 2008-04-02 19:54:56 +0200 (Wed, 02 Apr 2008)
New Revision: 191

Modified:
   selinux-site/trunk/buildout/ploneldap.patch
Log:
The PloneLDAP patch didn't work correctly, the result was that the email for members wasn't found for example. This patch is now fixed.


Modified: selinux-site/trunk/buildout/ploneldap.patch
===================================================================
--- selinux-site/trunk/buildout/ploneldap.patch	2008-04-01 21:20:52 UTC (rev 190)
+++ selinux-site/trunk/buildout/ploneldap.patch	2008-04-02 17:54:56 UTC (rev 191)
@@ -29,7 +29,7 @@
 +                # so the properties need the right encoding
 +                encoded_properties = {}
 +                for key, value in properties.items():
-+                    if schema_dict[key][1]=="lines":
++                    if schema_dict.has_key(key) and schema_dict[key][1]=="lines":
 +                        encoded_value = [x.encode(self._encoding) for x in value]
 +                    else:
 +                        encoded_value = value.encode(self._encoding)




More information about the commits mailing list