]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix dump Python.
authormzn <mzn@opencascade.com>
Thu, 23 Oct 2014 09:25:10 +0000 (09:25 +0000)
committermzn <mzn@opencascade.com>
Thu, 23 Oct 2014 09:25:10 +0000 (09:25 +0000)
src/HYDROData/HYDROData_CalculationCase.cxx
src/HYDROData/HYDROData_PriorityQueue.cxx

index 005ac412610dadeb3f3e67bdaf277613e2d9e07c..7dd9f93a419adeba960563a67c248fe4e2f32837 100644 (file)
@@ -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();
index 52ba2b2ebd2321930f687a31f00055149da5d98b..5934062f9a4deb0a6ba772d22ce2eb76d2c4757d 100644 (file)
@@ -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;
     }