From bec801fbead9fd05b6e5d5887d8d6afe67fbdbaf Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Wed, 8 May 2013 04:07:55 +0200 Subject: [PATCH] =?UTF-8?q?[lc=5Fldap]=20Petit=20probl=C3=A8me=20de=20d?= =?UTF-8?q?=C3=A9pendance=20cyclique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lors de la création d'un nouvel objets : * On à besoin des attributs pour le créer * On a besoin de l'objet pour créer ses attributs (si on veux faire la vérification commentée) À priori, c'est juste temporaire. --- lc_ldap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lc_ldap.py b/lc_ldap.py index 6697d28..5bccc6b 100644 --- a/lc_ldap.py +++ b/lc_ldap.py @@ -337,8 +337,10 @@ class lc_ldap(ldap.ldapobject.LDAPObject, object): # Conversion en cldif pour vérification des valeurs cldif = attributs.AttrsDict(self, ldif, Parent=None) # Conversion en ascii - data = cldif_to_ldif(cldif) + ### On a besoin du parent pour instancier les attributs + # data = cldif_to_ldif(cldif) # Renvoi du CransLdapObject + data = ldif return new_cransldapobject(self, dn, 'rw', data) def _find_id(self, attr, plage=None):