From 5c073cf1a6859451704823707e63465611be08c9 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Wed, 5 Jun 2019 11:17:22 +0200 Subject: [PATCH] debug probleme de cast entier booleen: changement de comportement sur les comparaisons en Python3 --- src/HYDRO/HYDROSOLVER.py | 2 +- src/HYDROGUI/HYDROSOLVERGUI.py | 4 ++-- src/salome_hydro/param_study/eficas/appli.py | 2 +- src/salome_hydro/run_study/eficas/appli.py | 2 +- src/salome_hydro/telma/eficas/appli.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/HYDRO/HYDROSOLVER.py b/src/HYDRO/HYDROSOLVER.py index 1fe370c..973af78 100644 --- a/src/HYDRO/HYDROSOLVER.py +++ b/src/HYDRO/HYDROSOLVER.py @@ -34,5 +34,5 @@ class HYDROSOLVER(HYDROSOLVER_ORB__POA.HYDROSOLVER, def __init__ ( self, orb, poa, contID, containerName, instanceName, interfaceName ): SALOME_ComponentPy.SALOME_ComponentPy_i.__init__(self, orb, poa, - contID, containerName, instanceName, interfaceName, 0) + contID, containerName, instanceName, interfaceName) SALOME_DriverPy.SALOME_DriverPy_i.__init__(self, interfaceName) diff --git a/src/HYDROGUI/HYDROSOLVERGUI.py b/src/HYDROGUI/HYDROSOLVERGUI.py index db1f814..6521a77 100755 --- a/src/HYDROGUI/HYDROSOLVERGUI.py +++ b/src/HYDROGUI/HYDROSOLVERGUI.py @@ -379,7 +379,7 @@ def generate_param_study_python(): sobj = get_and_check_selected_file_path() ed.generate_study_script(sobj) except SALOME.SALOME_Exception as exc: - salome.sg.updateObjBrowser(0) + salome.sg.updateObjBrowser() msg = str(QApplication.translate("generate_telemac2d_python", "An error happened while trying to generate telemac2d Python script:")) msg += "\n" + exc.details.text @@ -395,7 +395,7 @@ def generate_param_study_yacs(): sobj = get_and_check_selected_file_path() ed.generate_study_yacs(sobj) except SALOME.SALOME_Exception as exc: - salome.sg.updateObjBrowser(0) + salome.sg.updateObjBrowser() msg = str(QApplication.translate("generate_telemac2d_yacs", "An error happened while trying to generate telemac2d Python script:")) msg += "\n" + exc.details.text diff --git a/src/salome_hydro/param_study/eficas/appli.py b/src/salome_hydro/param_study/eficas/appli.py index 9a5d017..71cca85 100644 --- a/src/salome_hydro/param_study/eficas/appli.py +++ b/src/salome_hydro/param_study/eficas/appli.py @@ -88,7 +88,7 @@ class EficasForParamStudyAppli(eficasSalome.MyEficas): QMessageBox.warning(self, self.tr("Warning"), self.tr("%s. Reason:\n%s\n\nSee logs for " "more details." % (msgError, exc))) - salome.sg.updateObjBrowser(0) + salome.sg.updateObjBrowser() def closeEvent(self, event): while self.codedir in sys.path: diff --git a/src/salome_hydro/run_study/eficas/appli.py b/src/salome_hydro/run_study/eficas/appli.py index 2446044..7db8971 100755 --- a/src/salome_hydro/run_study/eficas/appli.py +++ b/src/salome_hydro/run_study/eficas/appli.py @@ -70,7 +70,7 @@ class EficasForRunStudyAppli(eficasSalome.MyEficas): logger.exception(msgError) QMessageBox.warning(self, self.tr("Warning"), self.tr("%s. Reason:\n%s\n\nSee logs for more details." % (msgError, exc))) - salome.sg.updateObjBrowser(0) + salome.sg.updateObjBrowser() def closeEvent(self, event): while self.codedir in sys.path: diff --git a/src/salome_hydro/telma/eficas/appli.py b/src/salome_hydro/telma/eficas/appli.py index ca24c63..31fe3f8 100755 --- a/src/salome_hydro/telma/eficas/appli.py +++ b/src/salome_hydro/telma/eficas/appli.py @@ -87,7 +87,7 @@ class EficasForTelmaAppli(eficasSalome.MyEficas): QMessageBox.warning(self, self.tr("Warning"), self.tr("%s. Reason:\n%s\n\nSee logs for " "more details." % (msgError, exc))) - salome.sg.updateObjBrowser(0) + salome.sg.updateObjBrowser() def closeEvent(self, event): while self.codedir in sys.path: -- 2.39.2