From fa3feb0574bbb0306ff57dcf85bbdfb882d27081 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Fri, 9 Oct 2020 10:49:40 +0200 Subject: [PATCH] False 2 false --- Efi2Xsd/AccasXsd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Efi2Xsd/AccasXsd.py b/Efi2Xsd/AccasXsd.py index e3c5f81e..8e28d7d4 100755 --- a/Efi2Xsd/AccasXsd.py +++ b/Efi2Xsd/AccasXsd.py @@ -493,7 +493,7 @@ class X_definitionComposee (X_definition): self.getNomDuCodeDumpe() if first : - if multiple : self.nomDuTypePyxb = self.definitNomDuTypePyxb(forceACreer) + if multiple : self.nomDuTypePyxb = self.definitNomDuTypePyxb(forceACreer=True) else : self.nomDuTypePyxb = self.definitNomDuTypePyxb() self.texteSimple = "" # on n ajoute pas de type simple @@ -795,7 +795,8 @@ class X_SIMP (X_definition): for val in self.defaut : txtDefaut+=str(val) +" " self.texteElt = eltWithDefautDsSequence.format(self.nom,self.code,self.nomDuTypePyxb,minOccurs,1,txtDefaut) else : - if str(self.defaut) == 'True' : txtDefaut = 'true' + if str(self.defaut) == 'True' : txtDefaut = 'true' + elif str(self.defaut) == 'False' : txtDefaut = 'false' else : txtDefaut = str(self.defaut) self.texteElt = eltWithDefautDsSequence.format(self.nom,self.code,self.nomDuTypePyxb,minOccurs,1,txtDefaut) else : self.texteElt = eltDsSequence.format(self.nom,self.code,self.nomDuTypePyxb,minOccurs,1) -- 2.39.2