Salome HOME
Python dump and scripts: removal of references to study, debug print instructions
[modules/hydro.git] / src / HYDROData / HYDROData_Document.cxx
index 3a5cd32ffe17a080891e14322cdd48ee2bb18db7..ddbc99338e9dc15e6a06fbe4a2698b2aaee90750 100644 (file)
@@ -359,13 +359,13 @@ QStringList HYDROData_Document::DumpToPython( const QString& thePyScriptPath,
   {
     aResScript << QString( "import salome" );
     aResScript << QString( "" );
-    aResScript << QString( "def RebuildData( theStudy ):" );
-    aResScript << QString( "  %1 = HYDROData_Document.Document( theStudy._get_StudyId() )" ).arg( aDocName );
+    aResScript << QString( "def RebuildData():" );
+    aResScript << QString( "  %1 = HYDROData_Document.Document()" ).arg( aDocName );
   }
   else
   {
     aResScript << QString( "" );
-    aResScript << QString( "%1 = HYDROData_Document.Document( theStudy._get_StudyId() )" ).arg( aDocName );
+    aResScript << QString( "%1 = HYDROData_Document.Document()" ).arg( aDocName );
   }
 
   return aResScript;