[lc_ldap.py] AttributeError: 'str' object has no attribute '__unicode__'
This commit is contained in:
parent
2f1e24148a
commit
88697df427
1 changed files with 2 additions and 2 deletions
|
@ -340,9 +340,9 @@ class CransLdapObject(object):
|
|||
|
||||
def __getitem__(self, attr):
|
||||
if self.mode in [ 'w', 'rw' ]:
|
||||
return [ v.__unicode__() for v in self._modifs[attr] ]
|
||||
return [ v for v in self._modifs[attr] ]
|
||||
else:
|
||||
return [ v.__unicode__() for v in self.attrs[attr] ]
|
||||
return [ v for v in self.attrs[attr] ]
|
||||
|
||||
def __setitem__(self, attr, values):
|
||||
if self.mode not in ['w', 'rw']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue