]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Minor corrections for string management
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 19 Oct 2020 08:29:20 +0000 (10:29 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Mon, 19 Oct 2020 08:29:20 +0000 (10:29 +0200)
src/daComposant/daCore/Interfaces.py

index d6098add6669f72d3c51f4d3c86300ba7a1ddf71..37d53b83b75b4c6a2d549e0971ba39a5749436b0 100644 (file)
@@ -273,13 +273,13 @@ class _COMViewer(GenericCaseViewer):
                     if __idata['NodeType'] == 'Template' and 'Template' in __idata:
                         __template = __idata['Template']
                         if 'Info' in __idata:
-                            __info = ", Info='%s'"%(__idata['Info'],)
+                            __info = ", Info=\"\"\"%s\"\"\""%(__idata['Info'],)
                         else:
                             __info = ""
-                        __commands.append( "set( Concept='Observer', Variable='%s', Template='%s'%s )"%(sk,__template,__info) )
+                        __commands.append( "set( Concept='Observer', Variable='%s', Template=\"\"\"%s\"\"\"%s )"%(sk,__template,__info) )
                     if __idata['NodeType'] == 'String' and 'Value' in __idata:
                         __value =__idata['Value']
-                        __commands.append( "set( Concept='Observer', Variable='%s', String='%s' )"%(sk,__value) )
+                        __commands.append( "set( Concept='Observer', Variable='%s', String=\"\"\"%s\"\"\" )"%(sk,__value) )
             #
             # Background, ObservationError, ObservationOperator...
             elif type(r) is dict: