From: jlaine Date: Mon, 31 May 2010 16:46:19 +0000 (+0000) Subject: remove obsolete 'convert' function X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=ad5dd30d51b56079f87b471bfe495630f0d50055;p=matthijs%2Fupstream%2Fdjango-ldapdb.git remove obsolete 'convert' function git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@895 e071eeec-0327-468d-9b6a-08194a12b294 --- diff --git a/ldapdb/__init__.py b/ldapdb/__init__.py index 3ca9c63..0db12a1 100644 --- a/ldapdb/__init__.py +++ b/ldapdb/__init__.py @@ -23,17 +23,6 @@ import ldap 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): - return str(value) - elif isinstance(value, list): - return [ func(x) for x in value ] - else: - return func(value) - def escape_ldap_filter(value): value = str(value) return value.replace('\\', '\\5c') \