Salome HOME
0022347: [CEA 965] PYHELLO module does not appear in modules in YACS
authorvsr <vsr@opencascade.com>
Mon, 14 Oct 2013 11:22:36 +0000 (11:22 +0000)
committervsr <vsr@opencascade.com>
Mon, 14 Oct 2013 11:22:36 +0000 (11:22 +0000)
resources/CMakeLists.txt
resources/PYHELLOCatalog.xml.in
resources/schema.xml [new file with mode: 0644]

index f99766885267605e6471ef47aa28e71342fcc9a0..64230349df3cfd3d395ac278b8a1fdd7a3a89b70 100755 (executable)
@@ -26,9 +26,10 @@ SET(PYHELLO_RESOURCES_FILES
   PYHELLO_small.png
   PYHELLO.png
   stop.png
+  schema.xml
 )
 
 INSTALL(FILES ${PYHELLO_RESOURCES_FILES} DESTINATION ${SALOME_PYHELLO_INSTALL_RES_DATA})
 
 SALOME_CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/SalomeApp.xml.in ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml INSTALL ${SALOME_PYHELLO_INSTALL_RES_DATA})
-SALOME_CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/PYHELLOCatalog.xml.in ${CMAKE_CURRENT_BINARY_DIR}/PYHELLOCatalog.xml INSTALL ${SALOME_PYHELLO_INSTALL_RES_DATA})
\ No newline at end of file
+SALOME_CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/PYHELLOCatalog.xml.in ${CMAKE_CURRENT_BINARY_DIR}/PYHELLOCatalog.xml INSTALL ${SALOME_PYHELLO_INSTALL_RES_DATA})
index bd6764838c4b4a8766a31349ad2fd90cc22a562d..6d965e0f9f923c43abf546a8141880c093556b99 100644 (file)
  
 <!-- XML component catalog -->
 <begin-catalog>
-
-<!-- Path prefix information -->
-
-<path-prefix-list>
-</path-prefix-list>
-
-<!-- Component list -->
-<component-list>
+    <!-- Path prefix information -->
+    <path-prefix-list></path-prefix-list>
+    <!-- Types list -->
+    <type-list></type-list>
+    <!-- Component list -->
+    <component-list>
         <component>
-                <!-- Component identification -->
-                <component-name>PYHELLO</component-name>
-               <component-username>PYHELLO GUI</component-username>
-                <component-type>Data</component-type>
-                <component-author>C. Caremoli</component-author>
-                <component-version>@SALOMEPYHELLO_VERSION@</component-version>
-                <component-comment>EDF - RD</component-comment>
-                <component-multistudy>1</component-multistudy>
-                <component-icone>PYHELLO.png</component-icone>
-                <constraint>'linux' ~ OS</constraint>
-       
-       </component>
-</component-list>
+            <!-- Component identification -->
+            <component-name>PYHELLO</component-name>
+            <component-username>PyHello</component-username>
+            <component-type>Data</component-type>
+            <component-author>SALOME team</component-author>
+            <component-version>@SALOMEPYHELLO_VERSION@</component-version>
+            <component-comment></component-comment>
+            <component-multistudy>1</component-multistudy>
+            <component-impltype>1</component-impltype>
+            <component-icone>PYHELLO.png</component-icone>
+            <constraint></constraint>
+            <!-- Component services list -->
+            <component-interface-list>
+                <component-interface-name>PYHELLO_Gen</component-interface-name>
+                <component-interface-comment>unknown</component-interface-comment>
+                <component-service-list>
+                    <!-- Component service: makeBanner -->
+                    <component-service>
+                        <service-name>makeBanner</service-name>
+                        <service-author>vsr</service-author>
+                        <service-version>@SALOMEPYHELLO_VERSION@</service-version>
+                        <service-comment>unknown</service-comment>
+                        <service-by-default>0</service-by-default>
+                        <inParameter-list>
+                            <inParameter>
+                                <inParameter-name>name</inParameter-name>
+                                <inParameter-type>string</inParameter-type>
+                                <inParameter-comment>unknown</inParameter-comment>
+                            </inParameter>
+                        </inParameter-list>
+                        <outParameter-list>
+                            <outParameter>
+                                <outParameter-name>return</outParameter-name>
+                                <outParameter-type>string</outParameter-type>
+                                <outParameter-comment>unknown</outParameter-comment>
+                            </outParameter>
+                        </outParameter-list>
+                        <DataStream-list></DataStream-list>
+                    </component-service>
+                    <!-- Component service: createObject -->
+                    <component-service>
+                        <service-name>createObject</service-name>
+                        <service-author>vsr</service-author>
+                        <service-version>@SALOMEPYHELLO_VERSION@</service-version>
+                        <service-comment>unknown</service-comment>
+                        <service-by-default>0</service-by-default>
+                        <inParameter-list>
+                            <inParameter>
+                                <inParameter-name>theStudy</inParameter-name>
+                                <inParameter-type>Study</inParameter-type>
+                                <inParameter-comment>unknown</inParameter-comment>
+                            </inParameter>
+                            <inParameter>
+                                <inParameter-name>name</inParameter-name>
+                                <inParameter-type>string</inParameter-type>
+                                <inParameter-comment>unknown</inParameter-comment>
+                            </inParameter>
+                        </inParameter-list>
+                        <outParameter-list></outParameter-list>
+                        <DataStream-list></DataStream-list>
+                    </component-service>
+                </component-service-list>
+            </component-interface-list>
+        </component>
+    </component-list>
 </begin-catalog>
diff --git a/resources/schema.xml b/resources/schema.xml
new file mode 100644 (file)
index 0000000..26f7e3c
--- /dev/null
@@ -0,0 +1,72 @@
+<?xml version='1.0' encoding='iso-8859-1' ?>
+<proc name="newSchema_1">
+   <property name="DefaultStudyID" value="1"/>
+   <type name="string" kind="string"/>
+   <struct name="Engines/dataref">
+      <member name="ref" type="string"/>
+   </struct>
+   <objref name="Study" id="IDL:SALOMEDS/Study:1.0"/>
+   <type name="bool" kind="bool"/>
+   <sequence name="boolvec" content="bool"/>
+   <type name="double" kind="double"/>
+   <sequence name="dblevec" content="double"/>
+   <objref name="file" id="file"/>
+   <type name="int" kind="int"/>
+   <sequence name="intvec" content="int"/>
+   <struct name="stringpair">
+      <member name="name" type="string"/>
+      <member name="value" type="string"/>
+   </struct>
+   <sequence name="propvec" content="stringpair"/>
+   <objref name="pyobj" id="python:obj:1.0"/>
+   <sequence name="seqboolvec" content="boolvec"/>
+   <sequence name="seqdblevec" content="dblevec"/>
+   <sequence name="seqintvec" content="intvec"/>
+   <sequence name="stringvec" content="string"/>
+   <sequence name="seqstringvec" content="stringvec"/>
+   <container name="DefaultContainer">
+      <property name="container_name" value="FactoryServer"/>
+      <property name="name" value="localhost"/>
+   </container>
+   <service name="makeBanner0">
+      <component>PYHELLO</component>
+      <load container="DefaultContainer"/>
+      <method>makeBanner</method>
+      <inport name="name" type="string"/>
+      <outport name="return" type="string"/>
+   </service>
+   <service name="createObject1">
+      <component>PYHELLO</component>
+      <load container="DefaultContainer"/>
+      <method>createObject</method>
+      <inport name="theStudy" type="Study"/>
+      <inport name="name" type="string"/>
+   </service>
+   <inline name="PyFunction4">
+      <function name="getStudy">
+         <code><![CDATA[def getStudy():
+  import salome
+  return salome.myStudy
+]]></code>
+      </function>
+      <outport name="study" type="Study"/>
+   </inline>
+   <control> <fromnode>createObject1</fromnode> <tonode>makeBanner0</tonode> </control>
+   <control> <fromnode>PyFunction4</fromnode> <tonode>createObject1</tonode> </control>
+   <datalink control="false">
+      <fromnode>PyFunction4</fromnode> <fromport>study</fromport>
+      <tonode>createObject1</tonode> <toport>theStudy</toport>
+   </datalink>
+   <parameter>
+      <tonode>createObject1</tonode><toport>name</toport>
+      <value><string>object</string></value>
+   </parameter>
+   <parameter>
+      <tonode>makeBanner0</tonode><toport>name</toport>
+      <value><string>John Smit</string></value>
+   </parameter>
+   <presentation name="createObject1" x="241.5" y="57" width="158" height="90" expanded="1" expx="241.5" expy="57" expWidth="158" expHeight="90" shownState="0"/>
+   <presentation name="makeBanner0" x="494" y="57" width="158" height="63" expanded="1" expx="494" expy="57" expWidth="158" expHeight="63" shownState="0"/>
+   <presentation name="PyFunction4" x="24" y="57" width="158" height="63" expanded="1" expx="24" expy="57" expWidth="158" expHeight="63" shownState="0"/>
+   <presentation name="__ROOT__" x="0" y="0" width="656" height="151" expanded="1" expx="0" expy="0" expWidth="656" expHeight="151" shownState="0"/>
+</proc>