X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGENERICSOLVER%2FDEVIATION.py;h=9afc130ab156a8a8eb11836766fc4d2b8fd7c8ab;hb=355bfb10a40bff8d3a641c6a4c5365bffb3c50d8;hp=77a1017448bc899582393bf29869e917fed67c7c;hpb=dbdad89e4cbeaa8b9324f5b0e0f5d93a1a6201b8;p=samples%2Fgenericsolver.git diff --git a/src/GENERICSOLVER/DEVIATION.py b/src/GENERICSOLVER/DEVIATION.py index 77a1017..9afc130 100644 --- a/src/GENERICSOLVER/DEVIATION.py +++ b/src/GENERICSOLVER/DEVIATION.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2020 EDF R&D +# Copyright (C) 2009-2023 EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -33,6 +33,7 @@ import GENERICSOLVER_ORB__POA import SALOME import SALOME_ComponentPy import SALOME_DriverPy +import SALOME_Embedded_NamingService_ClientPy import _thread import salome @@ -113,7 +114,15 @@ class DEVIATION(GENERICSOLVER_ORB__POA.DEVIATION_Gen, SALOME_DriverPy.SALOME_DriverPy_i.__init__(self, interfaceName) # On stocke dans l'attribut _naming_service, une reference sur # le Naming Service CORBA - self._naming_service = SALOME_ComponentPy.SALOME_NamingServicePy_i( self._orb ) + #self._naming_service = SALOME_ComponentPy.SALOME_NamingServicePy_i( self._orb ) + # + emb_ns = self._contId.get_embedded_NS_if_ssl() + import CORBA + if CORBA.is_nil(emb_ns): + self._naming_service = SALOME_ComponentPy.SALOME_NamingServicePy_i( self._orb ) + else: + self._naming_service = SALOME_Embedded_NamingService_ClientPy.SALOME_Embedded_NamingService_ClientPy(emb_ns) + # self.deterministicValues = {} ######################################################################