From: eap Date: Thu, 23 Oct 2008 06:35:48 +0000 (+0000) Subject: PAL20544 4x: problems with Concatenate(). X-Git-Tag: V5_1_0a3~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=571d6f3701c28911811671e5553d528956feb5eb;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: