Salome HOME
Go on
[modules/yacs.git] / src / yacsloader / samples / err2.xml
index 1ebe906eb761ac98c950ad2979cf47aa3fd16c47..d8cb115fb09331c64137a60441b51526bd879f61 100644 (file)
@@ -1,3 +1,23 @@
+<!--
+  Copyright (C) 2006-2019  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, 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
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  Lesser General Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with this library; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+
+  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+
+-->
 <proc>
   <!--Schema for testing errors : execution errors -->
     <!--types -->
     <inline name="node0" >
       <script>
         <code>p1="toto"</code>
-        <code>print p1</code>
+        <code>print(p1)</code>
       </script>
       <outport name="p1" type="string"/>
     </inline>
 
     <service name="node1" >
-        <component>HELLO</component>
+        <component>PYHELLO</component>
         <method>makeBanner</method>
         <load container="B"/>
         <inport name="p1" type="string"/>
@@ -26,7 +46,7 @@
     <inline name="node0" >
       <script>
         <code>p1="toto"</code>
-        <code>print p1</code>
+        <code>print(p1)</code>
         <code>a=1/0</code>
       </script>
       <outport name="p1" type="string"/>