From: aguerre Date: Thu, 14 Nov 2013 17:24:37 +0000 (+0000) Subject: Replace FactoryServerPy by FactoryServer X-Git-Tag: BR_hydro_v_0_3_1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=51c0b6f1394177d53295cd7c39bee6f75f28fb27;p=modules%2Fkernel.git Replace FactoryServerPy by FactoryServer --- 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) - -