[Formed-commits] r440 - in trunk: . formed/formed/plugins/export

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 22 12:10:33 CET 2011


Author: roland
Date: 2011-02-22 12:10:33 +0100 (Tue, 22 Feb 2011)
New Revision: 440

Modified:
   trunk/ChangeLog
   trunk/formed/formed/plugins/export/xsd.py
Log:
Added support for 'float' element

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2011-02-21 16:27:46 UTC (rev 439)
+++ trunk/ChangeLog	2011-02-22 11:10:33 UTC (rev 440)
@@ -1,3 +1,8 @@
+2011-02-22  Roland Geider <roland.geider at intevation.de>
+
+	* formed/formed/plugins/export/xsd.py: Added support for <float>
+	  element
+
 2011-01-19  Torsten Irlaender <torsten at intevation.de>
 
 	* formed/formed/plugins/export/new_sql.py

Modified: trunk/formed/formed/plugins/export/xsd.py
===================================================================
--- trunk/formed/formed/plugins/export/xsd.py	2011-02-21 16:27:46 UTC (rev 439)
+++ trunk/formed/formed/plugins/export/xsd.py	2011-02-22 11:10:33 UTC (rev 440)
@@ -44,6 +44,7 @@
     <xs:complexType>
         <xs:choice maxOccurs="unbounded">
             <xs:element ref="bool"  minOccurs="0" maxOccurs="unbounded"/>
+            <xs:element ref="conditional"  minOccurs="0" maxOccurs="unbounded"/>
             <xs:element ref="group" minOccurs="0" maxOccurs="unbounded"/>
             <xs:element ref="external-choice" minOccurs="0" maxOccurs="unbounded"/>
         </xs:choice>
@@ -77,6 +78,7 @@
             <xs:element ref="textarea" minOccurs="0"/>
             <xs:element ref="choice"   minOccurs="0"/>
             <xs:element ref="int"      minOccurs="0"/>
+            <xs:element ref="float"    minOccurs="0"/>
             <xs:element ref="conditional"  minOccurs="0"/>
             <xs:element ref="radio-matrix" minOccurs="0"/>
             <xs:element ref="info"     minOccurs="0"/>
@@ -106,6 +108,7 @@
             <xs:element ref="group"       minOccurs="0"/>
             <xs:element ref="radio"       minOccurs="0"/>
             <xs:element ref="int"         minOccurs="0"/>
+            <xs:element ref="float"       minOccurs="0"/>
             <xs:element ref="info"        minOccurs="0"/>
             <xs:element ref="radio-matrix" minOccurs="0"/>
         </xs:choice>
@@ -149,6 +152,19 @@
     </xs:complexType>
 </xs:element>
 
+<xs:element name="float">
+    <xs:complexType>
+        <xs:attribute name="function"    type="xs:string"/>
+        <xs:attribute name="maxvalue"    type="xs:string"/>
+        <xs:attribute name="minvalue"    type="xs:string"/>
+        <xs:attribute name="value"       type="xs:string"/>
+        <xs:attribute name="name"        type="xs:string"/>
+        <xs:attribute name="description" type="xs:string"/>
+        <xs:attribute name="flags"       type="xs:string"/>
+        <xs:attribute name="target"      type="xs:string"/>
+    </xs:complexType>
+</xs:element>
+
 <xs:element name="info">
     <xs:complexType>
         <xs:attribute name="name"        type="xs:string"/>



More information about the Formed-commits mailing list