From ad5dd30d51b56079f87b471bfe495630f0d50055 Mon Sep 17 00:00:00 2001 From: jlaine Date: Mon, 31 May 2010 16:46:19 +0000 Subject: [PATCH] remove obsolete 'convert' function git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@895 e071eeec-0327-468d-9b6a-08194a12b294 --- ldapdb/__init__.py | 11 ----------- 1 file changed, 11 deletions(-) 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') \ -- 2.30.2