From: eap Date: Mon, 6 Jul 2015 13:41:46 +0000 (+0300) Subject: 23111: [CEA 1541] copy.deepcopy does not work on an objet of type Mesh X-Git-Tag: V7_7_0a1~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ff644361c82ba87ed768ad457533b41dcf24133c;p=modules%2Fsmesh.git 23111: [CEA 1541] copy.deepcopy does not work on an objet of type Mesh --- diff --git a/src/SMESH_SWIG/smeshBuilder.py b/src/SMESH_SWIG/smeshBuilder.py index c6e1eabb4..430b1fb35 100644 --- a/src/SMESH_SWIG/smeshBuilder.py +++ b/src/SMESH_SWIG/smeshBuilder.py @@ -4773,8 +4773,11 @@ class meshEditor(SMESH._objref_SMESH_MeshEditor): return getattr( self.mesh, name ) if name == "ExtrusionAlongPathObjX": return getattr( self.mesh, "ExtrusionAlongPathX" ) - print name, "NOT FOUND" + print name, "meshEditor: attribute '%s' NOT FOUND" % name return None + def __deepcopy__(self, memo=None): + new = self.__class__() + return new pass omniORB.registerObjref(SMESH._objref_SMESH_MeshEditor._NP_RepositoryId, meshEditor)