# sys.setdlopenflags(flags)
# pass
-orb, lcc, naming_service, cm, sg, esm = None,None,None,None,None,None
+orb, lcc, naming_service, cm, sg, esm, dsm = None,None,None,None,None,None,None
myStudy, myStudyName = None,None
salome_initial=True
naming_service a naming service instance
cm reference to the container manager
esm reference to external server manager
+ dsm reference to shared dataserver manager
sg access to SALOME GUI (when linked with IAPP GUI)
myStudy active study itself (CORBA reference)
myStudyName active study name
"""
global salome_initial
- global orb, lcc, naming_service, cm, esm
+ global orb, lcc, naming_service, cm, esm, dsm
global sg
global myStudy, myStudyName
if salome_initial:
salome_initial=False
sg = salome_iapp_init(embedded)
- orb, lcc, naming_service, cm, esm = salome_kernel_init()
+ orb, lcc, naming_service, cm, esm, dsm = salome_kernel_init()
myStudy, myStudyName = salome_study_init(path)
pass
pass
naming_service = None
cm = None
esm = None
+dsm = None
def salome_kernel_init():
- global orb, lcc, naming_service, cm, esm
+ global orb, lcc, naming_service, cm, esm, dsm
if not orb:
# initialise the ORB
# get External Server Manager
obj = naming_service.Resolve('/ExternalServers')
esm = obj._narrow(SALOME.ExternalServerLauncher)
+ #
+ obj = naming_service.Resolve('/DataServerManager')
+ dsm = obj._narrow(SALOME.DataServerManager)
- return orb, lcc, naming_service, cm, esm
+ return orb, lcc, naming_service, cm, esm, dsm
if verbose(): print("theStudyPath:", theStudyPath)
if not myStudy:
- orb, lcc, naming_service, cm, _ = salome_kernel.salome_kernel_init()
+ orb, lcc, naming_service, cm, _, _ = salome_kernel.salome_kernel_init()
# get Study reference
if verbose(): print("looking for study...")