[attributs] Il en manquait pas mal

This commit is contained in:
Pierre-Elliott Bécue 2013-03-04 06:26:56 +01:00
parent a879c126af
commit 5601c523c0
2 changed files with 88 additions and 2 deletions

View file

@ -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.attributs]
return attr in [attrib.__class__.__name__ for attrib in self.attribs]
def __setitem__(self, attr, values):
if self.mode not in ['w', 'rw']: