[lc_ldap.py] AttributeError: 'str' object has no attribute '__unicode__'

This commit is contained in:
Valentin Samir 2011-10-26 02:13:49 +02:00
parent 2f1e24148a
commit 88697df427

View file

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