]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Replace FactoryServerPy by FactoryServer
authoraguerre <aguerre>
Thu, 14 Nov 2013 17:24:37 +0000 (17:24 +0000)
committeraguerre <aguerre>
Thu, 14 Nov 2013 17:24:37 +0000 (17:24 +0000)
src/TestContainer/TestComponentPy.py

index 12b985edd259d03d3c2eadd46d63d49d955e6da6..3b79f7d7e9f844c5464c04ab358c19d171a2a30b 100755 (executable)
@@ -49,7 +49,7 @@ if rootContext is None:
 
 #resolve the name /Containers.dir/FactoryServerPy.object
 machineName=getShortHostName()
-containerName = "FactoryServerPy"
+containerName = "FactoryServer"
 name = [CosNaming.NameComponent("Containers","dir"),
         CosNaming.NameComponent(machineName,"dir"),
         CosNaming.NameComponent(containerName,"object")]
@@ -62,12 +62,10 @@ except CosNaming.NamingContext.NotFound, ex:
 
 container = obj._narrow(Engines.Container)
 print container.getHostName()
-comp = container.load_impl("SALOME_TestComponentPy","SALOME_TestComponentPy")
+comp = container.load_impl("SalomeTestComponent","SalomeTestComponent")
 print comp._get_instanceName()
 comp.ping()
 comptest = comp._narrow(Engines.TestComponent)
 if comptest is None:
     print "probleme cast"
 print comptest.Coucou(1)
-
-