From 2ce8cee70daf1ed89a4fbbdcd0769c73d6a03665 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Mon, 29 Apr 2019 17:45:46 +0200 Subject: [PATCH] erreur sur les userASSD ds une liste --- Noyau/N_OBJECT.py | 3 ++- Noyau/N_SIMP.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Noyau/N_OBJECT.py b/Noyau/N_OBJECT.py index b10ae922..5bd37aa9 100644 --- a/Noyau/N_OBJECT.py +++ b/Noyau/N_OBJECT.py @@ -152,10 +152,11 @@ class OBJECT(object): if isinstance(MC.valeur, str) and MC.valeur in list(self.jdc.sds_dict.keys()): MC.valeur=self.jdc.sds_dict[MC.valeur] else : + print ('MC', MC.nom, MC.definition.max) for val in MC.valeur : newVal=[] if isinstance(val, str) and val in list(self.jdc.sds_dict.keys()): - newVal.append(self.jdc.sds_dict[MC.valeur]) + newVal.append(self.jdc.sds_dict[val]) MC.valeur=newVal if MC.definition.max == 1 : if MC.valeur in listeSupprimees: diff --git a/Noyau/N_SIMP.py b/Noyau/N_SIMP.py index 9fdc39d6..a13b4178 100644 --- a/Noyau/N_SIMP.py +++ b/Noyau/N_SIMP.py @@ -85,7 +85,9 @@ class SIMP(N_ENTITE.ENTITE): for t in (self.type) : if isinstance(t,str): continue if isinstance(t,Accas.A_TUPLE.Tuple): continue - if issubclass(t, Accas.UserASSD) : self.doitSenregistrerComme= t + try : + if issubclass(t, Accas.UserASSD) : self.doitSenregistrerComme= t + except : pass self.fr = fr self.statut = statut self.into = into -- 2.39.2