]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Renamed myParavisEngine into myPVServerService
authorabn <adrien.bruneton@cea.fr>
Fri, 17 Oct 2014 07:52:33 +0000 (09:52 +0200)
committerabn <adrien.bruneton@cea.fr>
Fri, 17 Oct 2014 07:52:33 +0000 (09:52 +0200)
src/PV_SWIG/no_wrap/pvserver.py
src/PV_SWIG/no_wrap/pvsimple.py

index d81bc71351613d8d9187e31b8dd5d904f5d2cb70..cf65feb5a84da4b3c4de5c82dc8ec702c5ffef2b 100644 (file)
@@ -23,5 +23,5 @@
 import PVSERVER_utils
 
 ## Initialize PARAVIS interface
-myParavisEngine = PVSERVER_utils.getEngine()
-myParavis = myParavisEngine
+myPVServerService = PVSERVER_utils.getEngine()
+
index f6a2c0c6b23256313ae85a9462146f6fecc1ef49..a0cc620ebfa63885c23fe19500652a0b8b1260c8 100644 (file)
@@ -78,11 +78,11 @@ def SalomeConnectToPVServer():
     __my_log("Connecting to PVServer ...")
     server_url = ""
     try:
-        isGUIConnected = paravis.myParavisEngine.GetGUIConnected()
+        isGUIConnected = paravis.myPVServerService.GetGUIConnected()
         if isGUIConnected and __getFromGUI():
             __my_log("Importing pvsimple from GUI and already connected. Won't reconnect.")
             return
-        server_url = paravis.myParavisEngine.FindOrStartPVServer(0)
+        server_url = paravis.myPVServerService.FindOrStartPVServer(0)
         # Extract host and port from URL:
         a = server_url.split(':')
         b = a[1].split('//')
@@ -90,7 +90,7 @@ def SalomeConnectToPVServer():
         simple.Connect(host, port)
         __my_log("Connected to %s!" % server_url)
         if __getFromGUI():
-            paravis.myParavisEngine.SetGUIConnected(True)
+            paravis.myPVServerService.SetGUIConnected(True)
     except Exception as e:
         __my_log("*******************************************")
         __my_log("** Could not connect to a running PVServer!")