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']: