[attributs] Il en manquait pas mal
This commit is contained in:
parent
a879c126af
commit
5601c523c0
2 changed files with 88 additions and 2 deletions
|
@ -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']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue