From 835f3651758ac7840e8228c62a6e971510cb3609 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Fri, 25 Sep 2020 16:55:15 +0200 Subject: [PATCH] ajout annotation --- Efi2Xsd/AccasXsd.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Efi2Xsd/AccasXsd.py b/Efi2Xsd/AccasXsd.py index 1176a5de..4575f072 100755 --- a/Efi2Xsd/AccasXsd.py +++ b/Efi2Xsd/AccasXsd.py @@ -1006,7 +1006,6 @@ class X_JDC_CATA : # self.texteXSD += texteKeyRef # self.texteXSD += fermeEltCata - self.texteXSD += texteFin @@ -1014,18 +1013,19 @@ class X_JDC_CATA : dico = {} for k in list(cata.dictTypesXSD.keys()): if len(cata.dictTypesXSD[k]) > 1: - index=0 + print (cata.dictTypesXSD[k]) dico[k]={} for definition in cata.dictTypesXSD[k] : nom=definition.nomComplet() - if index == 0 : dico[k][nom]=k+str(index) - else : dico[k][nom]=k+str(index) - index=index+1 + dico[k][nom]=definition.nomDuTypePyxb + if dico != {} : self.texteXSD += texteAnnotation.format(str(dico)) + print (dico) #import pprint #if (not PourTraduction) and (dico != {}) : pprint.pprint(dico) print ('__________________________ decommenter pour le texteXSD________________________') #print (self.texteXSD) + self.texteXSD += texteFin return self.texteXSD -- 2.39.2