From ab2495e202d7ef7fcb277d14104d91bdd5a4b8d4 Mon Sep 17 00:00:00 2001 From: nri Date: Mon, 19 May 2003 08:19:06 +0000 Subject: [PATCH] NRI : Use component username from Catalog. --- src/Supervision/batchmode_SuperV.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Supervision/batchmode_SuperV.py b/src/Supervision/batchmode_SuperV.py index 56ebb40..a0100fc 100644 --- a/src/Supervision/batchmode_SuperV.py +++ b/src/Supervision/batchmode_SuperV.py @@ -46,7 +46,11 @@ if father is None: father = myBuilder.NewComponent("SUPERV") A1 = myBuilder.FindOrCreateAttribute(father, "AttributeName"); FName = A1._narrow(SALOMEDS.AttributeName) - FName.SetValue("Supervision") + +# FName.SetValue("Supervision") + Comp = modulecatalog.GetComponent( "SUPERV" ) + FName.SetValue( Comp._get_componentusername() ) + A2 = myBuilder.FindOrCreateAttribute(father, "AttributePixMap"); aPixmap = A2._narrow(SALOMEDS.AttributePixMap); aPixmap.SetPixMap( "ICON_OBJBROWSER_Supervision" ); -- 2.39.2