From: srn Date: Tue, 4 Apr 2006 13:28:57 +0000 (+0000) Subject: BugID PAL12117 fixed the method DumpPython in order it has a correct signature and... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3f92fa5130ad1f90f2d43a24a5c86a07d7e8c8e2;p=modules%2Fkernel.git BugID PAL12117 fixed the method DumpPython in order it has a correct signature and a method's body --- diff --git a/src/Container/SALOME_ComponentPy.py b/src/Container/SALOME_ComponentPy.py index 642c76e5a..47a05448b 100755 --- a/src/Container/SALOME_ComponentPy.py +++ b/src/Container/SALOME_ComponentPy.py @@ -271,14 +271,9 @@ class SALOME_ComponentPy_i (Engines__POA.Component): #------------------------------------------------------------------------- - def DumpPython(self, theStudy, isPublished, isValidScript): - aBuffer = "def RebuildData(theStudy): pass" - aBufferSize = len(aBuffer) + 1 - anOctetBuf = aBuffer._narrow(CORBA.Octet) - aTMPFile = Engines.TMPFile(aBufferSize, aBufferSize, anOctetBuf._this(), 1) - isValidScript = 1 - #return (aBuffer, 1) - return aTMPFile._this() + def DumpPython(self, theStudy, isPublished): + aBuffer = "def RebuildData(theStudy): pass\n\0" + return (aBuffer, 1) #-------------------------------------------------------------------------