]> SALOME platform Git repositories - modules/homard.git/commitdiff
Salome HOME
Porting Python3: Encode URL
authorGilles DAVID <gilles-g.david@edf.fr>
Tue, 6 Jun 2017 15:14:50 +0000 (17:14 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Tue, 6 Jun 2017 15:14:50 +0000 (17:14 +0200)
src/HOMARD_I/HOMARD_Gen_i.cxx

index 5b5dacc239749b5579ce41f3835b8464be2de4ba..4d44ae9ee2b7a255c4787f58d6b8ddff529dfe0e 100644 (file)
@@ -33,6 +33,7 @@
 #include "HOMARD_version.h"
 
 #include "utilities.h"
+#include "Basics_Utils.hxx"
 #include "Utils_SINGLETON.hxx"
 #include "Utils_CorbaException.hxx"
 #include "SALOMEDS_Tool.hxx"
@@ -4351,7 +4352,7 @@ SALOMEDS::TMPFile* HOMARD_Gen_i::Save(SALOMEDS::SComponent_ptr theComponent,
   // HOMARD data file name
   std::string aFileName = "";
   if (isMultiFile)
-    aFileName = SALOMEDS_Tool::GetNameFromPath(aStudy->URL());
+    aFileName = SALOMEDS_Tool::GetNameFromPath(Kernel_Utils::encode(aStudy->URL()));
   aFileName += "_HOMARD.dat";
 
   // initialize sequence of file names
@@ -4476,7 +4477,7 @@ CORBA::Boolean HOMARD_Gen_i::Load(SALOMEDS::SComponent_ptr theComponent,
   // HOMARD data file name
   std::string aFileName = "";
   if (isMultiFile)
-    aFileName = SALOMEDS_Tool::GetNameFromPath(aStudy->URL());
+    aFileName = SALOMEDS_Tool::GetNameFromPath(Kernel_Utils::encode(aStudy->URL()));
   aFileName = tmpDir + aFileName + "_HOMARD.dat";
 
   StudyContext& context = myContextMap[ aStudy->StudyId() ];