Exemplo n.º 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
Exemplo n.º 2
0
Arquivo: app.py Projeto: 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'])