From: pascale.noyret Date: Wed, 2 Jun 2021 14:45:47 +0000 (+0200) Subject: essai correction cata Karel X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3461c57cfd52f6b1f50731ce8f4e695c5fbf5b5f;p=tools%2Feficas.git essai correction cata Karel --- 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 "" +