From 1e8f622b0ec04e5b548fe70c1560da359ed233ef Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 23 Oct 2014 09:25:10 +0000 Subject: [PATCH] Fix dump Python. --- src/HYDROData/HYDROData_CalculationCase.cxx | 2 +- src/HYDROData/HYDROData_PriorityQueue.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.39.2