]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
BugID PAL12117 fixed the method DumpPython in order it has a correct signature and...
authorsrn <srn@opencascade.com>
Tue, 4 Apr 2006 13:28:57 +0000 (13:28 +0000)
committersrn <srn@opencascade.com>
Tue, 4 Apr 2006 13:28:57 +0000 (13:28 +0000)
src/Container/SALOME_ComponentPy.py

index 642c76e5a4f65e08067e2fb9b7f5a1b5053393e6..47a05448b00ef92310077420fcae274e835f84fc 100755 (executable)
@@ -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)
 
     #-------------------------------------------------------------------------