From 335654d33c68d58969660647cf47fbb3b67e4f40 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Wed, 23 Jun 2021 11:47:16 +0200 Subject: [PATCH] generator_XML.py --- generator/generator_XML.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/generator/generator_XML.py b/generator/generator_XML.py index 451601af..fb1623a0 100644 --- a/generator/generator_XML.py +++ b/generator/generator_XML.py @@ -99,13 +99,14 @@ class XMLGenerator(PythonGenerator): def generMCSIMP(self,obj) : - if obj.nom in self.dictNbNomObj.keys(): - nomUtil = obj.nom + "_" + str(self.dictNbNomObj[obj.nom]) - self.dictNbNomObj[obj.nom] += 1 - else : - nomUtil = obj.nom - self.dictNbNomObj[obj.nom] = 1 - if obj.definition.avecBlancs : self.textePourAide += nomUtil + " = vimmpCase." + obj.getNomDsXML() + ".s\n" + if obj.nom != 'Consigne' : + if obj.nom in self.dictNbNomObj.keys(): + nomUtil = obj.nom + "_" + str(self.dictNbNomObj[obj.nom]) + self.dictNbNomObj[obj.nom] += 1 + else : + nomUtil = obj.nom + self.dictNbNomObj[obj.nom] = 1 + if obj.definition.avecBlancs : self.textePourAide += nomUtil + " = vimmpCase." + obj.getNomDsXML() + ".s\n" else : self.textePourAide += nomUtil + " = vimmpCase." + obj.getNomDsXML() + "\n" self.textePourAide +='txt += "' + nomUtil + '" + " = " +str( ' + nomUtil + ')+"\\n"'+ "\n" -- 2.39.2