summaryrefslogtreecommitdiffstats
path: root/rp_meyzieu/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'rp_meyzieu/config.py')
-rw-r--r--rp_meyzieu/config.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/rp_meyzieu/config.py b/rp_meyzieu/config.py
index ee630c0..513e329 100644
--- a/rp_meyzieu/config.py
+++ b/rp_meyzieu/config.py
@@ -85,8 +85,11 @@ if config.getboolean('debug', 'log_debug'):
## PATH
# Configuration directory
config_root = config.get('dirs', 'config_root')
-# Template directory
-template_directory = os.path.join(BASE_DIR, 'templates')
+# Templates directories
+templates_directories = []
+if config.get('dirs', 'templates_directories'):
+ templates_directories = config.get('dirs', 'templates_directories').split(' ')
+templates_directories.append(os.path.join(BASE_DIR, 'templates'))
# Static url
static_url = config.get('dirs', 'static_url')
# Static folder
@@ -94,6 +97,12 @@ static_root = config.get('dirs', 'static_root')
# Data dir
data_dir = config.get('dirs', 'data_dir')
+# template vars
+template_vars = {}
+if config.has_section('template_vars'):
+ for option in config.options('template_vars'):
+ template_vars[option] = config.get('template_vars', option)
+
# Supported authentification
authentifications = {
'saml2': 'mandaye.auth.saml2.SAML2Auth'