From 625a9c561e09177d22fc8c5d00b909b04ee1f25b Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Sat, 16 Oct 2010 16:43:00 +0200 Subject: [PATCH] [lc_ldap] on appelle attrify avec le ldif post-modifications --- lc_ldap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lc_ldap.py b/lc_ldap.py index 0859617..3ed6a59 100644 --- a/lc_ldap.py +++ b/lc_ldap.py @@ -317,7 +317,9 @@ class CransLdapObject(object): new_vals = [new_vals] # On attrify - new_vals = [ attrify(val, attr, self._modifs) for val in new_vals ] + cldif = self.attrs.copy() + cldif[attr] = new_vals + new_vals = [ attrify(val, attr, cldif) for val in new_vals ] # Si ça passe, on effectue les modifications old_vals = [ str(val) for val in self.attrs.get(attr, []) ]