]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Make it work with both WSS and SSL
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 1 Feb 2021 15:46:42 +0000 (16:46 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 1 Feb 2021 15:46:42 +0000 (16:46 +0100)
src/Container/SALOME_ComponentPy.py

index ca26093fdfc5ab1461ec76391a4ec0ace8f0f420..a10403cf0b74b4aa31b3d357d59278130835a1d1 100644 (file)
@@ -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')