remove obsolete 'convert' function
authorjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 31 May 2010 16:46:19 +0000 (16:46 +0000)
committerjlaine <jlaine@e071eeec-0327-468d-9b6a-08194a12b294>
Mon, 31 May 2010 16:46:19 +0000 (16:46 +0000)
git-svn-id: https://svn.bolloretelecom.eu/opensource/django-ldapdb/trunk@895 e071eeec-0327-468d-9b6a-08194a12b294

ldapdb/__init__.py

index 3ca9c632a5afd5dadd8b17523db2d6f47e450f36..0db12a1705d5a5eaf7dfe8b19f05bc24959c2158 100644 (file)
@@ -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') \