From: rnv Date: Tue, 21 Apr 2015 16:57:25 +0000 (+0300) Subject: Fix for the '23041: [CEA 1468] In master with Paraview 4.3.1, the trace does not... X-Git-Tag: V7_6_0rc1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f07cd7c52e1f70d542270ac7e52bc2a4a8249ddc;p=modules%2Fparavis.git Fix for the '23041: [CEA 1468] In master with Paraview 4.3.1, the trace does not appear in the dump': rollback changes that were made in the frame of the 81da00916a4935b commit. --- diff --git a/src/ENGINE/PVSERVER.py b/src/ENGINE/PVSERVER.py index ba89f507..6b906013 100644 --- a/src/ENGINE/PVSERVER.py +++ b/src/ENGINE/PVSERVER.py @@ -200,19 +200,19 @@ class PVSERVER(PVSERVER_ORB__POA.PVSERVER_Gen, attr.SetValue( PVSERVER_utils.objectID() ) pass -# """ -# Dump module data to the Python script. -# """ -# def DumpPython( self, study, isPublished, isMultiFile ): -# MESSAGE("dumpPython()") -# abuffer = self.GetPythonTraceString().split("\n") -# if isMultiFile: -# abuffer = [ " " + s for s in abuffer ] -# abuffer[0:0] = [ "def RebuildData( theStudy ):" ] -# abuffer += [ " pass" ] -# abuffer += [ "\0" ] -# return ("\n".join( abuffer ), 1) - + """ + Dump module data to the Python script. + """ + def DumpPython( self, study, isPublished, isMultiFile ): + MESSAGE("dumpPython()") + abuffer = self.GetPythonTraceString().split("\n") + if isMultiFile: + abuffer = [ " " + s for s in abuffer ] + abuffer[0:0] = [ "def RebuildData( theStudy ):" ] + abuffer += [ " pass" ] + abuffer += [ "\0" ] + return ("\n".join( abuffer ), 1) + """ Import file to restore module data """