From 58efee08a428933b3085f174cce3198c93cceb76 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Tue, 27 Apr 2021 10:04:46 +0200 Subject: [PATCH] pb des noms en double et du nom de code mal defini --- Efi2Xsd/AccasXsd.py | 4 +++- InterfaceQT4/readercata.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Efi2Xsd/AccasXsd.py b/Efi2Xsd/AccasXsd.py index c030fb0f..1af0889b 100755 --- a/Efi2Xsd/AccasXsd.py +++ b/Efi2Xsd/AccasXsd.py @@ -1263,7 +1263,9 @@ class X_JDC_CATA : if dico[k]== {} or (not different) : del dico[k] import pprint #pprint.pprint(dico) - if dico != {} : self.texteXSD += texteAnnotation.format(self.nomDuCodeDumpe,str(dico)) + # PN reflechir a ce *** de nom + #if dico != {} : self.texteXSD += texteAnnotation.format(self.nomDuCodeDumpe,str(dico)) + if dico != {} : self.texteXSD += texteAnnotation.format(str(dico)) #import pprint #if (not PourTraduction) and (dico != {}) : pprint.pprint(dico) diff --git a/InterfaceQT4/readercata.py b/InterfaceQT4/readercata.py index 5848d20a..e2550adb 100644 --- a/InterfaceQT4/readercata.py +++ b/InterfaceQT4/readercata.py @@ -237,7 +237,9 @@ class ReaderCata (ReaderCataCommun): modeleMetier= imp.load_source(nomCataXsd,pathCata) #print ('nomCataXsd , pathCata ',nomCataXsd,pathCata) try : - monObjetAnnotation = getattr(modeleMetier,'PNEFdico_'+self.code) + #if 1 : + #monObjetAnnotation = getattr(modeleMetier,'PNEFdico_'+self.code) + monObjetAnnotation = getattr(modeleMetier,'PNEFdico') texte=monObjetAnnotation.__doc__ except : texte=None -- 2.39.2