Changeset - b42eae7b7abb
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 6 years ago 2020-08-01 23:18:43
mads@kiilerich.com
Grafted from: 0463d8d387c6
tg: fix launching with kajiki after moving to FullStackApplicationConfigurator 27d9ca0c8381

Application start failed with:
TypeError: 'FullStackApplicationConfigurator' object is not subscriptable
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/config/app_cfg.py
Show inline comments
 
@@ -83,25 +83,25 @@ base_config.update_blueprint({
 
# DebugBar, a debug toolbar for TurboGears2.
 
# (https://github.com/TurboGears/tgext.debugbar)
 
# To enable it, install 'tgext.debugbar' and 'kajiki', and run Kallithea with
 
# 'debug = true' (not in production!)
 
# See the Kallithea documentation for more information.
 
try:
 
    import kajiki  # only to check its existence
 
    from tgext.debugbar import enable_debugbar
 
    assert kajiki
 
except ImportError:
 
    pass
 
else:
 
    base_config['renderers'].append('kajiki')
 
    base_config.get_blueprint_value('renderers').append('kajiki')
 
    enable_debugbar(base_config)
 

	
 

	
 
def setup_configuration(app):
 
    config = app.config
 

	
 
    if not kallithea.lib.locale.current_locale_is_valid():
 
        log.error("Terminating ...")
 
        sys.exit(1)
 

	
 
    # Mercurial sets encoding at module import time, so we have to monkey patch it
 
    hgencoding = config.get('hgencoding')
0 comments (0 inline, 0 general)