From 9cba9ca0cd25e598f1251779aa040a6ffa84c7b0 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Wed, 28 Nov 2012 18:29:10 +0100 Subject: [PATCH] =?UTF-8?q?Clarification=20de=20l'erreur=20"=CE=BBv.=20str?= =?UTF-8?q?(Attr(v))=20non=20projection"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lc_ldap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lc_ldap.py b/lc_ldap.py index c0b50b6..09e61c8 100644 --- a/lc_ldap.py +++ b/lc_ldap.py @@ -341,6 +341,7 @@ class CransLdapObject(object): self.attrs = ldif_to_cldif(self.attrs, conn, check_ctxt = False) if mode in ['w', 'rw']: ### Vérification que `λv. str(Attr(v))` est bien une projection + ### C'est-à-dire que si on str(Attr(str(Attr(v)))) on retombe sur str(Attr(v)) oldif = res[0][1] nldif = cldif_to_ldif(self.attrs) @@ -350,7 +351,7 @@ class CransLdapObject(object): if v in vals: vals.remove(v) nvals = [nldif[attr][v.index(v)] for v in vals ] - raise EnvironmentError("λv. str(Attr(v)) n'est peut-être pas une projection:", attr, nvals, vals) + raise EnvironmentError("λv. str(Attr(v)) n'est peut-être pas une projection (ie non idempotente):", attr, nvals, vals) self._modifs = ldif_to_cldif(ldif_to_uldif(res[0][1]), conn, check_ctxt = False)