From: vsr Date: Thu, 6 Oct 2016 07:21:04 +0000 (+0300) Subject: 0023360: [CEA 1963] Use salome.sg.updateObjBrowser(True) instead of salome.sg.updateO... X-Git-Tag: V8_2_0a1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6cd0d6d43f0470171d977c3c9f6c5d71fc7aff91;p=modules%2Fkernel.git 0023360: [CEA 1963] Use salome.sg.updateObjBrowser(True) instead of salome.sg.updateObjBrowser(1) - Prepare for migration to swig 3: pass explicitly True as boolean parameter for updateObjBrowser() function. --- diff --git a/src/KERNEL_PY/salome_test.py b/src/KERNEL_PY/salome_test.py index 7a9457760..c70a0f5b3 100755 --- a/src/KERNEL_PY/salome_test.py +++ b/src/KERNEL_PY/salome_test.py @@ -163,7 +163,7 @@ print "OK" # ---- update object browser if salome.hasDesktop(): - salome.sg.updateObjBrowser(1); + salome.sg.updateObjBrowser(True); print @@ -303,7 +303,7 @@ print "OK" # ---- update object browser if salome.hasDesktop(): - salome.sg.updateObjBrowser(1); + salome.sg.updateObjBrowser(True); print @@ -455,4 +455,4 @@ else: # not in gui mode, Paravis can not be tested # ---- update object browser if salome.hasDesktop(): - salome.sg.updateObjBrowser(1); + salome.sg.updateObjBrowser(True); diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index d9dd02393..5947c4030 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -1416,7 +1416,7 @@ bool SALOMEDSImpl_Study::DumpStudy(const std::string& thePath, sfp << std::endl; sfp << "if salome.sg.hasDesktop():" << std::endl; - sfp << "\tsalome.sg.updateObjBrowser(1)" << std::endl; + sfp << "\tsalome.sg.updateObjBrowser(True)" << std::endl; if(isDumpVisuals) { //Output the call to Session's method restoreVisualState sfp << "\tiparameters.getSession().restoreVisualState(1)" << std::endl;