From: nri Date: Mon, 19 May 2003 08:19:06 +0000 (+0000) Subject: NRI : Use component username from Catalog. X-Git-Tag: Start-v1_1a~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ab2495e202d7ef7fcb277d14104d91bdd5a4b8d4;p=modules%2Fsuperv.git NRI : Use component username from Catalog. --- 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" );