Example #1
0
def parse_http_config(cfg):
    if 'http.allow_local' in cfg: 
        cfg['http.allow_local'] = parse_bool(cfg['http.allow_local'])
    if 'http.timeout' in cfg:
        try:
            cfg['http.timeout'] = int(cfg['http.timeout'])
        except: 
            pass
Example #2
0
File: app.py Project: jab/radarpost
def parse_web_config(config):
    if 'web.apps' in config: 
        config['web.apps'] = [x.strip() for x in config['web.apps'].split(',')]
    if 'web.debug' in config:
        config['web.debug'] = parse_bool(config['web.debug'])