From: eap Date: Thu, 23 Oct 2008 06:34:40 +0000 (+0000) Subject: PAL20544 4x: problems with Concatenate(). X-Git-Tag: RELIQUAT_4x_25102008~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=54e2aba6c506ced5f560dae75bf47ff3410ac2e3;p=modules%2Fsmesh.git PAL20544 4x: problems with Concatenate(). fix SetName(obj, name) for the case if obj is instance of class Mesh or Mesh_Algorithm --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 88aa2a6f6..c9d99bf92 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -174,6 +174,10 @@ def GetName(obj): ## Sets a name to the object def SetName(obj, name): + if isinstance( obj, Mesh ): + obj = obj.GetMesh() + elif isinstance( obj, Mesh_Algorithm ): + obj = obj.GetAlgorithm() ior = salome.orb.object_to_string(obj) sobj = salome.myStudy.FindObjectIOR(ior) if not sobj is None: