예제 #1
0
def load_extended_params():
    """load extended params"""
    ext_params_ok = True
    # extern tools
    ext_params_ok = lib_cm.params_provide_tools(ac, db)
    if ext_params_ok is None:
        return None
    ext_params_ok = lib_cm.params_provide_server_settings(ac, db)
    if ext_params_ok is None:
        return None
    lib_cm.set_server(ac, db)
    ext_params_ok = lib_cm.params_provide_server_paths_a(ac, db,
                                                        ac.server_active)
    return ext_params_ok
예제 #2
0
def load_extended_params():
    """load extended params"""
    ext_params_ok = True
    # protocol-params
    db.ac_config_protocol = db.params_load_1a(
                            ac, db, "PO_Protokoll_Config")
    if db.ac_config_protocol is not None:
        # Erweiterte Paramsliste anlegen
        app_params_type_list = []
        # Erweiterte Params-Type-List,
        # Typ entsprechend der Params-Liste in der Config
        app_params_type_list.append("p_string")
        app_params_type_list.append("p_string")
        app_params_type_list.append("p_string")
        app_params_type_list.append("p_int")
        app_params_type_list.append("p_int")
        app_params_type_list.append("p_string")
        app_params_type_list.append("p_string")
        app_params_type_list.append("p_int")
        # Erweiterte Params pruefen
        param_check_times = lib_cm.params_check_a(
                        ac, db, 7,
                        app_params_type_list,
                        db.ac_config_protocol)
        if param_check_times is None:
            db.write_log_to_db_a(ac, ac.app_errorslist[3], "x",
            "write_also_to_console")
            return None

    # extern tools
    ext_params_ok = lib_cm.params_provide_tools(ac, db)
    if ext_params_ok is None:
        return None
    ext_params_ok = lib_cm.params_provide_server_settings(ac, db)
    if ext_params_ok is None:
        return None
    lib_cm.set_server(ac, db)
    ext_params_ok = lib_cm.params_provide_server_paths_a(ac, db,
                                                        ac.server_active)
    if ext_params_ok is None:
        return None
    ext_params_ok = lib_cm.params_provide_server_paths_b(ac, db,
                                                        ac.server_active)
    return ext_params_ok
예제 #3
0
def load_extended_params():
    """load extended params"""
    ext_params_ok = True
    # protocol-params
    db.ac_config_protocol = db.params_load_1a(ac, db, "PO_Protokoll_Config")
    if db.ac_config_protocol is not None:
        # Erweiterte Paramsliste anlegen
        app_params_type_list = []
        # Erweiterte Params-Type-List,
        # Typ entsprechend der Params-Liste in der Config
        app_params_type_list.append("p_string")
        app_params_type_list.append("p_string")
        app_params_type_list.append("p_string")
        app_params_type_list.append("p_int")
        app_params_type_list.append("p_int")
        app_params_type_list.append("p_string")
        app_params_type_list.append("p_string")
        app_params_type_list.append("p_int")
        # Erweiterte Params pruefen
        param_check_times = lib_cm.params_check_a(ac, db, 7,
                                                  app_params_type_list,
                                                  db.ac_config_protocol)
        if param_check_times is None:
            db.write_log_to_db_a(ac, ac.app_errorslist[3], "x",
                                 "write_also_to_console")
            return None

    # extern tools
    ext_params_ok = lib_cm.params_provide_tools(ac, db)
    if ext_params_ok is None:
        return None
    ext_params_ok = lib_cm.params_provide_server_settings(ac, db)
    if ext_params_ok is None:
        return None
    lib_cm.set_server(ac, db)
    ext_params_ok = lib_cm.params_provide_server_paths_a(
        ac, db, ac.server_active)
    if ext_params_ok is None:
        return None
    ext_params_ok = lib_cm.params_provide_server_paths_b(
        ac, db, ac.server_active)
    return ext_params_ok