summaryrefslogtreecommitdiff
path: root/repoze/bfg/settings.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-04-25 16:37:07 +0000
committerChris McDonough <chrism@agendaless.com>2010-04-25 16:37:07 +0000
commiteac892170c9d1e889f2462dc59fe1a9b2b33c239 (patch)
tree1ef8e29113752c1422a6ab90c26a21f644deb3b7 /repoze/bfg/settings.py
parent96c3e9907ed683f9daf4592550c7fd5c71f6f400 (diff)
downloadpyramid-eac892170c9d1e889f2462dc59fe1a9b2b33c239.tar.gz
pyramid-eac892170c9d1e889f2462dc59fe1a9b2b33c239.tar.bz2
pyramid-eac892170c9d1e889f2462dc59fe1a9b2b33c239.zip
Fix default_locale_name.
Add debug_templates setting.
Diffstat (limited to 'repoze/bfg/settings.py')
-rw-r--r--repoze/bfg/settings.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/repoze/bfg/settings.py b/repoze/bfg/settings.py
index 9cb2502a1..ff292dc7c 100644
--- a/repoze/bfg/settings.py
+++ b/repoze/bfg/settings.py
@@ -28,6 +28,9 @@ class Settings(dict):
config_debug_notfound = self.get('debug_notfound', '')
eff_debug_notfound = asbool(eget('BFG_DEBUG_NOTFOUND',
config_debug_notfound))
+ config_debug_templates = self.get('debug_templates', '')
+ eff_debug_templates = asbool(eget('BFG_DEBUG_TEMPLATES',
+ config_debug_templates))
config_reload_templates = self.get('reload_templates', '')
eff_reload_templates = asbool(eget('BFG_RELOAD_TEMPLATES',
config_reload_templates))
@@ -36,12 +39,13 @@ class Settings(dict):
config_reload_resources))
configure_zcml = self.get('configure_zcml', '')
eff_configure_zcml = eget('BFG_CONFIGURE_ZCML', configure_zcml)
- locale_name = self.get('locale_name', 'en')
+ locale_name = self.get('default_locale_name', 'en')
eff_locale_name = eget('BFG_DEFAULT_LOCALE_NAME', locale_name)
update = {
'debug_authorization': eff_debug_all or eff_debug_auth,
'debug_notfound': eff_debug_all or eff_debug_notfound,
+ 'debug_templates': eff_debug_all or eff_debug_templates,
'reload_templates': eff_reload_all or eff_reload_templates,
'reload_resources':eff_reload_all or eff_reload_resources,
'configure_zcml':eff_configure_zcml,