From 89ae2e0a2e687e58dabc1a07d1d3e6faba6ec49d Mon Sep 17 00:00:00 2001 From: PASCALE NOYRET Date: Mon, 30 May 2022 09:48:50 +0200 Subject: [PATCH] tests Eric2 --- InterfaceQT4/eficas_go.py | 3 +-- generator/generator_XML.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/InterfaceQT4/eficas_go.py b/InterfaceQT4/eficas_go.py index fc8edaf3..ff06f70e 100755 --- a/InterfaceQT4/eficas_go.py +++ b/InterfaceQT4/eficas_go.py @@ -131,8 +131,7 @@ def genereXML(code=None): return 0 #print ('Fichier comm is not valid') monEditeur.XMLGenerator.gener(monEditeur.jdc) - monEditeur.XMLGenerator.writeDefault(fichierXMLOut) - return 1 + return monEditeur.XMLGenerator.writeDefault(fichierXMLOut) def genereComm(code=None): #----------------------- diff --git a/generator/generator_XML.py b/generator/generator_XML.py index 4d62847f..66770e77 100644 --- a/generator/generator_XML.py +++ b/generator/generator_XML.py @@ -81,7 +81,7 @@ class XMLGenerator(PythonGenerator): def writeDefault(self,fn) : if self.texteXML=='erreur generation' : print (self.texteXML) - return + return 0 fileXML = fn[:fn.rfind(".")] + '.xml' #filePyxb = fn[:fn.rfind(".")] + '.py' fileBase = os.path.basename(fileXML) @@ -99,6 +99,7 @@ class XMLGenerator(PythonGenerator): self.textePourAide=self.textePourAide+'print (txt)'+'\n' f.write(str(self.textePourAide)) f.close() + return 1 def generMCSIMP(self,obj) : -- 2.39.2