Salome HOME
Merge Python 3 porting.
[modules/yacs.git] / src / yacsloader / samples / pyremote4.xml
index 5a8608db8ae7e577f21170926f5ef43bcfff233b..c9d84d182d3f25285d46d242698c64b4463ca1c3 100644 (file)
@@ -1,11 +1,11 @@
 <?xml version='1.0' encoding='iso-8859-1' ?>
 <!--
-  Copyright (C) 2006-2013  CEA/DEN, EDF R&D
+  Copyright (C) 2006-2016  CEA/DEN, EDF R&D
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
-  version 2.1 of the License.
+  version 2.1 of the License, or (at your option) any later version.
 
   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -20,7 +20,6 @@
 
 -->
 <proc name="TestDistPython2">
-   <property name="DefaultStudyID" value="1"/>
    <type name="string" kind="string"/>
    <struct name="Engines/dataref">
       <member name="ref" type="string"/>
    <remote name="Node6">
       <script>
          <code><![CDATA[
-print "coucou, x=",x
-print "coucou, a=",a
-print "my_container=",my_container
+print("coucou, x=",x)
+print("coucou, a=",a)
+print("my_container=",my_container)
 y= x+" OK ca marche"+str(a)
 z=2*a+4.7
-print y,z
+print(y,z)
 ]]></code>
       </script>
       <load container="cont1"/>
@@ -59,8 +58,8 @@ print y,z
    </remote>
    <inline name="node2">
       <script><code><![CDATA[
-print "dans node2 p1=",p1
-print "dans node2 p2=",p2
+print("dans node2 p1=",p1)
+print("dans node2 p2=",p2)
 ]]></code></script>
       <inport name="p1" type="string"/>
       <inport name="p2" type="double"/>