From: jlaine Date: Mon, 31 May 2010 12:01:33 +0000 (+0000) Subject: add some FIXMEs X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=f522a1edca8bccd27cefc6407a150ea5b98a2f07;p=matthijs%2Fupstream%2Fdjango-ldapdb.git add some FIXMEs git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@881 e071eeec-0327-468d-9b6a-08194a12b294 --- diff --git a/ldapdb/__init__.py b/ldapdb/__init__.py index 4b0a6d5..7f11e67 100644 --- a/ldapdb/__init__.py +++ b/ldapdb/__init__.py @@ -24,6 +24,7 @@ from django.conf import settings 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): @@ -99,6 +100,7 @@ class LdapConnection(object): 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: