X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fdjango-ldapdb.git;a=blobdiff_plain;f=ldapdb%2Fbackends%2Fldap%2Fbase.py;h=062f5c0ff0635207f33d9c982715dae4ea71e683;hp=1b21647ebe97e2a7f64a5299748f08fd98fc8188;hb=2d6433b98c090eae864447b1985465a3ce15805e;hpb=0cadc34057b757d759d4640bcd9107dc02b96520 diff --git a/ldapdb/backends/ldap/base.py b/ldapdb/backends/ldap/base.py index 1b21647..062f5c0 100644 --- a/ldapdb/backends/ldap/base.py +++ b/ldapdb/backends/ldap/base.py @@ -45,12 +45,14 @@ class DatabaseFeatures(BaseDatabaseFeatures): self.connection = connection class DatabaseOperations(BaseDatabaseOperations): + compiler_module = "ldapdb.backends.ldap.compiler" + def quote_name(self, name): return name class DatabaseWrapper(BaseDatabaseWrapper): - def __init__(self, settings_dict, alias='ldap'): - super(DatabaseWrapper, self).__init__(settings_dict, alias=alias) + def __init__(self, *args, **kwargs): + super(DatabaseWrapper, self).__init__(*args, **kwargs) self.charset = "utf-8" self.features = DatabaseFeatures(self) @@ -67,6 +69,9 @@ class DatabaseWrapper(BaseDatabaseWrapper): self.settings_dict['PASSWORD']) return DatabaseCursor(self.connection) + def _rollback(self): + pass + def add_s(self, dn, modlist): cursor = self._cursor() return cursor.connection.add_s(dn.encode(self.charset), modlist)