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)
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)