From a3938c73b44ed53c87b38f2e9f31654b7c0e0da8 Mon Sep 17 00:00:00 2001 From: kakwa Date: Tue, 19 May 2015 00:14:34 +0200 Subject: [PATCH] init backends initialization method --- ldapcherry/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index c894443..fb53051 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -76,6 +76,9 @@ class LdapCherry(object): else: raise MissingParameter(section, key) + def _init_backends(self, config): + pass + def _set_access_log(self, config, level): access_handler = self._get_param('global', 'log.access_handler', config, 'syslog') @@ -196,6 +199,7 @@ class LdapCherry(object): self.attributes_file = self._get_param('attributes', 'attributes.file', config) self.roles = Attributes(self.attributes_file) + self._init_backends(config) except Exception as e: self._handle_exception(e)