]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
NRI : Use component username from Catalog.
authornri <nri@opencascade.com>
Mon, 19 May 2003 08:19:06 +0000 (08:19 +0000)
committernri <nri@opencascade.com>
Mon, 19 May 2003 08:19:06 +0000 (08:19 +0000)
src/Supervision/batchmode_SuperV.py

index 56ebb40f1098abce98ffb0905439d650ae9488de..a0100fc4e7d1a3ea951a5a21bcc7cd21033e2aac 100644 (file)
@@ -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" );