From 3461c57cfd52f6b1f50731ce8f4e695c5fbf5b5f Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Wed, 2 Jun 2021 16:45:47 +0200 Subject: [PATCH] essai correction cata Karel --- InterfaceQT4/composimp.py | 4 +++- Noyau/N_UserASSD.py | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/InterfaceQT4/composimp.py b/InterfaceQT4/composimp.py index a3394761..9a78ba63 100644 --- a/InterfaceQT4/composimp.py +++ b/InterfaceQT4/composimp.py @@ -35,6 +35,7 @@ from Editeur import Objecttreeitem from InterfaceQT4 import browser from Noyau.N_CR import justifyText from Accas import SalomeEntry +from Accas import ASSD from Accas import UserASSD from Accas import UserASSDMultiple @@ -533,7 +534,8 @@ class SIMPTreeItem(Objecttreeitem.AtomicObjectTreeItem): Retourne le texte a afficher dans l'arbre representant la valeur de l'objet pointe par self """ - text= self.object.getText() + if self.waitUserAssdMultiple() or self.object.waitUserAssd() or self.object.waitAssd(): return self.object.nom + text = self.object.getText() if text == None : text="" return text diff --git a/Noyau/N_UserASSD.py b/Noyau/N_UserASSD.py index fbc25960..5cd4e7ea 100644 --- a/Noyau/N_UserASSD.py +++ b/Noyau/N_UserASSD.py @@ -154,3 +154,10 @@ class UserASSD(ASSD): # mcCreateur utile pour N_UserASSDMultiple print ('je passe dans supprime de N_UserASSDMultiple') self.deleteReference(mcCreateur) + + def __repr__(self): + return "concept " + self.getName() + " type " + self.__class__.__name__ + + def __str__(self): + return self.getName() or "" + -- 2.39.2