From 174bd87524283d4dd286639e5c8573ee24e9bf29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Mon, 4 Mar 2013 07:29:49 +0100 Subject: [PATCH] [lc_ldap] ob.__class__.__name__ ne retournait pas ce qu'on m'avait dit qu'il retournait... --- lc_ldap.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lc_ldap.py b/lc_ldap.py index 1e7e5ce..0b990ef 100644 --- a/lc_ldap.py +++ b/lc_ldap.py @@ -496,10 +496,10 @@ class CransLdapObject(object): - def _get_fields(self): - """Renvoie la liste des champs LDAP de l'objet""" - return self.attribs - fields = property(_get_fields) +# def _get_fields(self): +# """Renvoie la liste des champs LDAP de l'objet""" +# return self.attribs +# attribs = property(_get_fields) def history_add(self, login, chain): """Ajoute une ligne à l'historique de l'objet. @@ -588,7 +588,7 @@ class CransLdapObject(object): def has_key(self, attr): """Est-ce que notre objet a l'attribut en question ?""" - return attr in [attrib.__class__.__name__ for attrib in self.attribs] + return attr in [attrib.__name__ for attrib in self.attribs] def __setitem__(self, attr, values): if self.mode not in ['w', 'rw']: