From d4c1fcdd170cb470d765f02fe1e22b50ce7078a9 Mon Sep 17 00:00:00 2001 From: PASCALE NOYRET Date: Mon, 30 May 2022 10:32:15 +0200 Subject: [PATCH] code retour pour generatecomm --- InterfaceQT4/editorSsIhm.py | 2 +- InterfaceQT4/eficas_go.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/InterfaceQT4/editorSsIhm.py b/InterfaceQT4/editorSsIhm.py index 5bcaa21c..1480a343 100755 --- a/InterfaceQT4/editorSsIhm.py +++ b/InterfaceQT4/editorSsIhm.py @@ -171,7 +171,7 @@ class JDCEditorSsIhm : txt_exception = None if not jdc: if self.extensionFichier == '.xml' : - if self.appliEficas.maConfiguration.withXSD: self.jdc.analyseXML() + if self.appliEficas.maConfiguration.withXSD: self.jdc.analyseXML() else : print ('run MDM with -x option (MDM for XML)'); exit() else : self.jdc.analyse() txt_exception = self.jdc.cr.getMessException() diff --git a/InterfaceQT4/eficas_go.py b/InterfaceQT4/eficas_go.py index ff06f70e..fb8aba6e 100755 --- a/InterfaceQT4/eficas_go.py +++ b/InterfaceQT4/eficas_go.py @@ -154,6 +154,7 @@ def genereComm(code=None): else : fichierCommOut = options.fichierOut monEditeur=JDCEditorSsIhm(monEficasSsIhm,fichier) if not(monEditeur.readercata.cata) : return 0 + if not(monEditeur.jdc) : return 0 # on ne sait lire que des xml valides #PNPN monEditeur.pythonGenerator.gener(monEditeur.jdc,format = 'beautifie') -- 2.39.2