示例#1
0
def get_import_info():
    if CONFIG.get("import", "continue_on_error") is None:
        CONFIG.set("import", "continue_on_error", "0")
    return {
        "continue_on_error": CONFIG.get('import', 'continue_on_error'),
        'bulk_load': CONFIG.get('import', 'bulk_load')
    }
示例#2
0
def get_rhic_serve_config_info():
    return {
        "host": CONFIG.get("rhic_serve", "host"),
        "port": CONFIG.get("rhic_serve", "port"),
        "user": CONFIG.get("rhic_serve", "username"),
        "passwd": CONFIG.get("rhic_serve", "password")
    }
示例#3
0
def get_nau():
    return {
        'calculation': CONFIG.get('nau', 'calculation')
    }