From: mzn Date: Thu, 23 Oct 2014 09:25:10 +0000 (+0000) Subject: Fix dump Python. X-Git-Tag: BR_hydro_v_1_0_4~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1e8f622b0ec04e5b548fe70c1560da359ed233ef;p=modules%2Fhydro.git Fix dump Python. --- diff --git a/src/HYDROData/HYDROData_CalculationCase.cxx b/src/HYDROData/HYDROData_CalculationCase.cxx index 005ac412..7dd9f93a 100644 --- a/src/HYDROData/HYDROData_CalculationCase.cxx +++ b/src/HYDROData/HYDROData_CalculationCase.cxx @@ -114,7 +114,7 @@ QStringList HYDROData_CalculationCase::DumpToPython( MapOfTreatedObjects& theTre QString aCalculName = GetObjPyName(); AssignmentMode aMode = GetAssignmentMode(); - QString aModeStr = aMode==MANUAL ? "MANUAL" : "AUTOMATIC"; + QString aModeStr = aMode==MANUAL ? "HYDROData_CalculationCase.MANUAL" : "HYDROData_CalculationCase.AUTOMATIC"; aResList << QString( "%0.SetAssignmentMode( %1 )" ).arg( aCalculName ).arg( aModeStr ); HYDROData_SequenceOfObjects aGeomObjects = GetGeometryObjects(); diff --git a/src/HYDROData/HYDROData_PriorityQueue.cxx b/src/HYDROData/HYDROData_PriorityQueue.cxx index 52ba2b2e..5934062f 100644 --- a/src/HYDROData/HYDROData_PriorityQueue.cxx +++ b/src/HYDROData/HYDROData_PriorityQueue.cxx @@ -197,16 +197,16 @@ void HYDROData_PriorityQueue::DumpRulesToPython( const TDF_Label& theRulesLab, switch( anIt->MergeType ) { case HYDROData_Zone::Merge_UNKNOWN: - aMergeType = "Merge_UNKNOWN"; + aMergeType = "HYDROData_Zone.Merge_UNKNOWN"; break; case HYDROData_Zone::Merge_ZMIN: - aMergeType = "Merge_ZMIN"; + aMergeType = "HYDROData_Zone.Merge_ZMIN"; break; case HYDROData_Zone::Merge_ZMAX: - aMergeType = "Merge_ZMAX"; + aMergeType = "HYDROData_Zone.Merge_ZMAX"; break; case HYDROData_Zone::Merge_Object: - aMergeType = "Merge_Object"; + aMergeType = "HYDROData_Zone.Merge_Object"; break; }