Changeset - 58ea5a9ded33
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2019-11-16 16:43:25
mads@kiilerich.com
Grafted from: 96df07c0f075
utils: back out changeset cbf524e4c1a3 - the setup code is removing the session after app creation - set_app_settings shouldn't do it
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/utils.py
Show inline comments
 
@@ -368,30 +368,28 @@ def make_ui(repo_path=None, clear_sessio
 
        else:
 
            log.debug('hgrc file is not present at %s, skipping...', hgrc_path)
 

	
 
    return baseui
 

	
 

	
 
def set_app_settings(config):
 
    """
 
    Updates app config with new settings from database
 

	
 
    :param config:
 
    """
 
    try:
 
        hgsettings = Setting.get_app_settings()
 

	
 
        for k, v in hgsettings.items():
 
            config[k] = v
 
    finally:
 
        meta.Session.remove()
 

	
 

	
 
def set_vcs_config(config):
 
    """
 
    Patch VCS config with some Kallithea specific stuff
 

	
 
    :param config: kallithea.CONFIG
 
    """
 
    from kallithea.lib.vcs import conf
 
    from kallithea.lib.utils2 import aslist
 
    conf.settings.BACKENDS = {
 
        'hg': 'kallithea.lib.vcs.backends.hg.MercurialRepository',
0 comments (0 inline, 0 general)