From: pascale.noyret Date: Mon, 1 Apr 2019 14:03:31 +0000 (+0200) Subject: pour dumper True en true X-Git-Tag: avantMenage~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b80046af92efdec0ee50bc50aa8febe0c2113fbd;p=tools%2Feficas.git pour dumper True en true --- diff --git a/Efi2Xsd/AccasXsd.py b/Efi2Xsd/AccasXsd.py index 06d20b7b..c276eec6 100755 --- a/Efi2Xsd/AccasXsd.py +++ b/Efi2Xsd/AccasXsd.py @@ -220,7 +220,7 @@ 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 self.defaut == True : txtDefaut = 'true' + if str(self.defaut) == 'True' : txtDefaut = 'true' else : txtDefaut = str(self.defaut) self.texteElt = eltWithDefautDsSequence.format(self.nom,self.code,self.nomDuTypePyxb,minOccurs,1,txtDefaut)