from django.db.backends import BaseDatabaseFeatures, BaseDatabaseOperations
def convert(field, value, func):
+ # FIXME : we should not reference the attribute name!
if not value or field == 'jpegPhoto':
return value
elif isinstance(value, int):
output = []
for dn, attrs in results:
for field in attrs:
+ # FIXME : we should not reference the attribute name!
if field == "member" or field == "memberUid":
attrs[field] = convert(field, attrs[field], lambda x: x.decode(self.charset))
else: