From 4147690ce818ee67a1bc8b41dc0c05335acb82a8 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 1 Feb 2021 16:46:42 +0100 Subject: [PATCH] Make it work with both WSS and SSL --- src/Container/SALOME_ComponentPy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Container/SALOME_ComponentPy.py b/src/Container/SALOME_ComponentPy.py index ca26093fd..a10403cf0 100644 --- a/src/Container/SALOME_ComponentPy.py +++ b/src/Container/SALOME_ComponentPy.py @@ -86,8 +86,6 @@ class SALOME_ComponentPy_Gen_i (Engines__POA.EngineComponent): self._contId = contID myMachine=getShortHostName() - Component_path = self._containerName + "/" + self._instanceName - MESSAGE( 'SALOME_ComponentPy_i Register' + str( Component_path ) ) id_o = poa.activate_object(self) self._compo_o = poa.id_to_reference(id_o) self._notifSupplier = NOTIFICATION_Supplier_Swig(instanceName, self._notif) @@ -299,6 +297,8 @@ class SALOME_ComponentPy_i(SALOME_ComponentPy_Gen_i): def __init__ (self, orb, poa, contID, containerName, instanceName, interfaceName, notif=False): SALOME_ComponentPy_Gen_i.__init__(self, orb, poa, contID, containerName, instanceName, interfaceName, notif) naming_service = SALOME_NamingServicePy_i(self._orb) + Component_path = self._containerName + "/" + self._instanceName + MESSAGE( 'SALOME_ComponentPy_i Register' + str( Component_path ) ) naming_service.Register(self._compo_o, Component_path) # Add componentinstance to registry obj = naming_service.Resolve('/Registry') -- 2.39.2