def srvBov1(dIni, Adh): """ ACTIONBO """ """ """ print("RUN la fonction=", sys._getframe().f_code.co_name, ", pour Adh=", Adh) myApp_mod.alert("TODO " + sys._getframe().f_code.co_name + ", pour Adh=" + Adh) print("BO-User="******"BO-Pwd=", dIni['dAdherents'][Adh]['BO-Pwd'])
def dirRapp(dIni, Adh=None): """ ACTION_BO_DIR_RAPP """ """ Recuperer dans le fichier ini le repertoire cible """ print("nom de la fonction=", sys._getframe().f_code.co_name) bo_dir_section = sys._getframe().f_code.co_name bo_dir_cmd_section = "bo_dir_cmd" bo_dir_rapp_section = "bo_dir_rapp" try: ## La section relative a cette fonction section = dIni['objCfg'][bo_dir_section] except: myApp_mod.log("ERREUR : Il n'y a pas de section [" + bo_dir_section + "] dans le fichier de configuration") myApp_mod.alert("ERREUR : Il n'y a pas de section [" + bo_dir_section + "] dans le fichier de configuration") if (dIni['verbose']): print("ERREUR : Il n'y a pas de section [" + bo_dir_section + "] dans le fichier de configuration") else: try: ## L'option 1 bo_dir_cmd = dIni['objCfg'][bo_dir_section][bo_dir_cmd_section] except: myApp_mod.alert("ERREUR : il manque l'option [" + bo_dir_cmd_section + "] dans la section [" + bo_dir_section + "] du fichier de configuration") myApp_mod.log("ERREUR : il manque l'option [" + bo_dir_cmd_section + "] dans la section [" + bo_dir_section + "] du fichier de configuration") if (dIni['verbose']): print("ERREUR : il manque l'option [" + bo_dir_cmd_section + "] dans la section [" + bo_dir_section + "] du fichier de configuration") else: try: ## L'option 2 bo_dir_rapp = dIni['objCfg'][bo_dir_section][ bo_dir_rapp_section] print("BINGO") print("la config de la fonction=", dIni['objCfg'][bo_dir_section][bo_dir_rapp_section]) except: myApp_mod.alert("ERREUR : il manque l'option [" + bo_dir_rapp_section + "] dans la section [" + bo_dir_section + "] du fichier de configuration") myApp_mod.log("ERREUR : il manque l'option [" + bo_dir_rapp_section + "] dans la section [" + bo_dir_section + "] du fichier de configuration") if (dIni['verbose']): print("ERREUR : il manque l'option [" + bo_dir_rapp_section + "] dans la section [" + bo_dir_section + "] du fichier de configuration") #print("cmd=", bo_dir_cmd + " " + bo_dir_rapp) os.system(bo_dir_cmd + " " + bo_dir_rapp)
def cmcv2(dIni, Adh): """ ACTIONBO """ """ """ print("RUN la fonction=", sys._getframe().f_code.co_name) myApp_mod.alert("TODO " + sys._getframe().f_code.co_name)