From 51c0b6f1394177d53295cd7c39bee6f75f28fb27 Mon Sep 17 00:00:00 2001 From: aguerre Date: Thu, 14 Nov 2013 17:24:37 +0000 Subject: [PATCH] Replace FactoryServerPy by FactoryServer --- src/TestContainer/TestComponentPy.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/TestContainer/TestComponentPy.py b/src/TestContainer/TestComponentPy.py index 12b985edd..3b79f7d7e 100755 --- a/src/TestContainer/TestComponentPy.py +++ b/src/TestContainer/TestComponentPy.py @@ -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) - - -- 2.39.2