valid_enum is now choice
This commit is contained in:
@ -7,17 +7,16 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="number" description="enumvar" help="bla bla bla"/>
|
||||
<variable name="enumvar" type="choice" description="enumvar" help="bla bla bla">
|
||||
<choice type="number">1</choice>
|
||||
<choice type="number">2</choice>
|
||||
<choice type="number">3</choice>
|
||||
<value type="number">1</value>
|
||||
</variable>
|
||||
<variable name="test_variable" type="number" description="test variable"/>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>1</param>
|
||||
<param>2</param>
|
||||
<param>3</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
<condition name="hidden_if_in" source="enumvar">
|
||||
<param>4</param>
|
||||
<target type="variable">test_variable</target>
|
||||
|
@ -2,8 +2,11 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="condition" type="string" description="No change">
|
||||
<value>tous</value>
|
||||
<variable name="condition" type="choice" description="No change">
|
||||
<value type="string">tous</value>
|
||||
<choice type="string">tous</choice>
|
||||
<choice type="string">authentifié</choice>
|
||||
<choice type="string">aucun</choice>
|
||||
</variable>
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>tous</value>
|
||||
@ -14,12 +17,6 @@
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>tous</param>
|
||||
<param>authentifié</param>
|
||||
<param>aucun</param>
|
||||
<target>condition</target>
|
||||
</check>
|
||||
<condition name="disabled_if_in" source="condition">
|
||||
<param type="variable">mode_conteneur_actif</param>
|
||||
<target type="variable">mode_conteneur_actif2</target>
|
||||
|
@ -2,8 +2,11 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="condition" type="string" description="No change">
|
||||
<value>tous</value>
|
||||
<variable name="condition" type="choice" description="No change">
|
||||
<value type="string">tous</value>
|
||||
<choice type="string">tous</choice>
|
||||
<choice type="string">authentifié</choice>
|
||||
<choice type="string">aucun</choice>
|
||||
</variable>
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>aucun</value>
|
||||
@ -14,12 +17,6 @@
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>tous</param>
|
||||
<param>authentifié</param>
|
||||
<param>aucun</param>
|
||||
<target>condition</target>
|
||||
</check>
|
||||
<condition name="disabled_if_in" source="condition">
|
||||
<param type="variable">mode_conteneur_actif</param>
|
||||
<target type="variable">mode_conteneur_actif2</target>
|
||||
|
@ -2,8 +2,11 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="condition" type="string" description="No change">
|
||||
<value>tous</value>
|
||||
<variable name="condition" type="choice" description="No change">
|
||||
<value type="string">tous</value>
|
||||
<choice type="string">tous</choice>
|
||||
<choice type="string">authentifié</choice>
|
||||
<choice type="string">aucun</choice>
|
||||
</variable>
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>non</value>
|
||||
@ -14,12 +17,6 @@
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>tous</param>
|
||||
<param>authentifié</param>
|
||||
<param>aucun</param>
|
||||
<target>condition</target>
|
||||
</check>
|
||||
<condition name="hidden_if_in" source="condition">
|
||||
<param>tous</param>
|
||||
<param>authentifié</param>
|
||||
|
@ -2,8 +2,11 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="condition" type="string" description="No change">
|
||||
<value>tous</value>
|
||||
<variable name="condition" type="choice" description="No change">
|
||||
<value type="string">tous</value>
|
||||
<choice type="string">tous</choice>
|
||||
<choice type="string">authentifié</choice>
|
||||
<choice type="string">aucun</choice>
|
||||
</variable>
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change" hidden="True">
|
||||
<value>non</value>
|
||||
@ -14,12 +17,6 @@
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>tous</param>
|
||||
<param>authentifié</param>
|
||||
<param>aucun</param>
|
||||
<target>condition</target>
|
||||
</check>
|
||||
<condition name="hidden_if_in" source="condition">
|
||||
<param>oui</param>
|
||||
<param>non</param>
|
||||
|
@ -2,8 +2,11 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="condition" type="string" description="No change">
|
||||
<value>tous</value>
|
||||
<variable name="condition" type="choice" description="No change">
|
||||
<value type="string">tous</value>
|
||||
<choice type="string">tous</choice>
|
||||
<choice type="string">authentifié</choice>
|
||||
<choice type="string">aucun</choice>
|
||||
</variable>
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>tous</value>
|
||||
@ -14,12 +17,6 @@
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>tous</param>
|
||||
<param>authentifié</param>
|
||||
<param>aucun</param>
|
||||
<target>condition</target>
|
||||
</check>
|
||||
<condition name="hidden_if_in" source="condition">
|
||||
<param type="variable">mode_conteneur_actif</param>
|
||||
<target type="variable">mode_conteneur_actif2</target>
|
||||
|
@ -2,8 +2,11 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="condition" type="string" description="No change">
|
||||
<value>tous</value>
|
||||
<variable name="condition" type="choice" description="No change">
|
||||
<value type="string">tous</value>
|
||||
<choice type="string">tous</choice>
|
||||
<choice type="string">authentifié</choice>
|
||||
<choice type="string">aucun</choice>
|
||||
</variable>
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>non</value>
|
||||
@ -14,12 +17,6 @@
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>tous</param>
|
||||
<param>authentifié</param>
|
||||
<param>aucun</param>
|
||||
<target>condition</target>
|
||||
</check>
|
||||
<condition name="hidden_if_not_in" source="condition">
|
||||
<param>oui</param>
|
||||
<param>non</param>
|
||||
|
@ -2,8 +2,11 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="condition" type="string" description="No change">
|
||||
<value>tous</value>
|
||||
<variable name="condition" type="choice" description="No change">
|
||||
<value type="string">tous</value>
|
||||
<choice type="string">tous</choice>
|
||||
<choice type="string">authentifié</choice>
|
||||
<choice type="string">aucun</choice>
|
||||
</variable>
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change" hidden="True">
|
||||
<value>non</value>
|
||||
@ -14,12 +17,6 @@
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>tous</param>
|
||||
<param>authentifié</param>
|
||||
<param>aucun</param>
|
||||
<target>condition</target>
|
||||
</check>
|
||||
<condition name="mandatory_if_not_in" source="condition">
|
||||
<param>oui</param>
|
||||
<param>non</param>
|
||||
|
@ -7,18 +7,14 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="string" description="multi" help="bla bla bla">
|
||||
<value>c</value>
|
||||
<variable name="enumvar" type="choice" description="multi" help="bla bla bla">
|
||||
<value type="string">c</value>
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
<choice type="string">é</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<param>é</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -7,17 +7,13 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="string" description="multi" help="bla bla bla">
|
||||
<value>c</value>
|
||||
<variable name="enumvar" type="choice" description="multi" help="bla bla bla">
|
||||
<value type="string">c</value>
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -7,17 +7,13 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" mandatory="False">
|
||||
<variable name="enumvar" mandatory="False" type="choice">
|
||||
<value>c</value>
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -7,26 +7,19 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar2" type="string" description="multi">
|
||||
<value>c</value>
|
||||
<variable name="enumvar2" type="choice" description="multi">
|
||||
<value type="string">c</value>
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
</variable>
|
||||
<variable name="enumvar" type="string" description="multi" help="bla bla bla">
|
||||
<value>c</value>
|
||||
<variable name="enumvar" type="choice" description="multi" help="bla bla bla">
|
||||
<value type="string">c</value>
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>enumvar2</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -2,16 +2,12 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" redefine="True" remove_check="True">
|
||||
<variable name="enumvar" redefine="True" remove_check="True" remove_choice="True">
|
||||
<value>c</value>
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">c</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>c</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -7,17 +7,15 @@
|
||||
</variable>
|
||||
<family name="leader" description="leader" leadership="True">
|
||||
<variable name="leader" type="string" description="leader" multi="True"/>
|
||||
<variable name="follower1" type="string" description="follower1"/>
|
||||
<variable name="follower1" type="choice" description="follower1">
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
<value type="string">a</value>
|
||||
</variable>
|
||||
<variable name="follower2" type="string" description="follower2"/>
|
||||
</family>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>follower1</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -8,15 +8,13 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="string" description="multi" mandatory="True"/>
|
||||
<variable name="enumvar" type="choice" description="multi" mandatory="True">
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
<value type="string">a</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -5,15 +5,13 @@
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
<variable name="multi" type="string" description="multi" multi="True"/>
|
||||
<variable name="multi" type="choice" description="multi" multi="True">
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
<value type="string">a</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>multi</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -7,17 +7,13 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="string" description="multi" help="bla bla bla" mandatory="False">
|
||||
<value>b</value>
|
||||
<variable name="enumvar" type="choice" description="multi" help="bla bla bla" mandatory="False">
|
||||
<value type="string">b</value>
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="nil"/>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param/>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -13,7 +13,7 @@ except:
|
||||
from tiramisu import *
|
||||
option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"expert", "mandatory"}))
|
||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"expert"}))
|
||||
option_5 = ChoiceOption(name="enumvar", doc="multi", values=('a', 'b', '', None), default="b", properties=frozenset({"expert"}))
|
||||
option_5 = ChoiceOption(name="enumvar", doc="multi", values=('a', 'b', None), default="b", properties=frozenset({"expert"}))
|
||||
option_5.impl_set_information('help', "bla bla bla")
|
||||
option_4 = OptionDescription(name="enumfam", doc="enumfam", children=[option_5], properties=frozenset({"expert"}))
|
||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_4])
|
||||
|
@ -7,15 +7,13 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="number" description="enumvar" help="bla bla bla"/>
|
||||
<variable name="enumvar" type="choice" description="enumvar" help="bla bla bla">
|
||||
<choice type="number">1</choice>
|
||||
<choice type="number">2</choice>
|
||||
<choice type="number">3</choice>
|
||||
<value type="number">1</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>1</param>
|
||||
<param>2</param>
|
||||
<param>3</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -7,17 +7,13 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="number" description="enumvar" help="bla bla bla">
|
||||
<value>3</value>
|
||||
<variable name="enumvar" type="choice" description="enumvar" help="bla bla bla">
|
||||
<value type="number">3</value>
|
||||
<choice type="number">1</choice>
|
||||
<choice type="number">2</choice>
|
||||
<choice type="number">3</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>1</param>
|
||||
<param>2</param>
|
||||
<param>3</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -7,13 +7,11 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="string" description="multi" help="bla bla bla"/>
|
||||
<variable name="enumvar" type="choice" description="multi" help="bla bla bla">
|
||||
<choice type="nil"/>
|
||||
<value type="nil"/>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param type="nil"/>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -7,13 +7,11 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="string" description="multi" help="bla bla bla"/>
|
||||
<variable name="enumvar" type="choice" description="multi" help="bla bla bla">
|
||||
<choice type="nil"/>
|
||||
<value type="nil"/>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param type="nil"/>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -7,15 +7,13 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="string" description="multi" help="bla bla bla"/>
|
||||
<variable name="enumvar" type="choice" description="multi" help="bla bla bla">
|
||||
<choice type="string">quote'</choice>
|
||||
<choice type="string">quote"</choice>
|
||||
<choice type="string">quote"'</choice>
|
||||
<value type="string">quote'</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>quote'</param>
|
||||
<param>quote"</param>
|
||||
<param>quote"'</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -2,17 +2,13 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>b</value>
|
||||
<variable name="mode_conteneur_actif" type="choice" description="No change">
|
||||
<value type="string">b</value>
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>mode_conteneur_actif</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -7,8 +7,10 @@
|
||||
</services>
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="condition" type="string" description="No change">
|
||||
<value>non</value>
|
||||
<variable name="condition" type="choice" description="No change">
|
||||
<value type="string">non</value>
|
||||
<choice type="string">non</choice>
|
||||
<choice type="string">statique</choice>
|
||||
</variable>
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change" hidden="True">
|
||||
<value>non</value>
|
||||
@ -19,11 +21,6 @@
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>non</param>
|
||||
<param>statique</param>
|
||||
<target>condition</target>
|
||||
</check>
|
||||
<condition name="disabled_if_not_in" source="condition">
|
||||
<param>statique</param>
|
||||
<target type="filelist">afilllist</target>
|
||||
|
@ -2,17 +2,14 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="var" type="number" description="New variable">
|
||||
<value>9</value>
|
||||
<variable name="var" type="choice" description="New variable">
|
||||
<value type="number">9</value>
|
||||
<choice type="function" name="trange">
|
||||
<param type="number">0</param>
|
||||
<param type="number">10</param>
|
||||
</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param type="function">trange</param>
|
||||
<param type="number">0</param>
|
||||
<param type="number">10</param>
|
||||
<target>var</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -2,8 +2,9 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>a</value>
|
||||
<variable name="mode_conteneur_actif" type="choice" description="No change">
|
||||
<value type="string">a</value>
|
||||
<choice type="variable">var</choice>
|
||||
</variable>
|
||||
<variable name="var" type="string" description="New variable" multi="True">
|
||||
<value>a</value>
|
||||
@ -12,10 +13,5 @@
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param type="variable">var</param>
|
||||
<target>mode_conteneur_actif</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -10,16 +10,15 @@
|
||||
<variable name="mode_conteneur_actif2" type="string" description="No change">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
<variable name="mode_conteneur_actif3" type="string" description="No change"/>
|
||||
<variable name="mode_conteneur_actif3" type="choice" description="No change">
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
<value type="string">a</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>mode_conteneur_actif3</target>
|
||||
</check>
|
||||
<condition name="disabled_if_in" source="mode_conteneur_actif3">
|
||||
<param>d</param>
|
||||
<target type="variable">mode_conteneur_actif</target>
|
||||
|
@ -1,16 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change" hidden="True"/>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>mode_conteneur_actif</target>
|
||||
</check>
|
||||
</constraints>
|
||||
</rougail>
|
@ -1,10 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" redefine="True" remove_check="True">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
</rougail>
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"rougail.general.mode_conteneur_actif": {
|
||||
"owner": "default",
|
||||
"value": "non"
|
||||
}
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"rougail.general.mode_conteneur_actif": "non"
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"rougail.general.mode_conteneur_actif": {
|
||||
"owner": "default",
|
||||
"value": "non"
|
||||
}
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
from importlib.machinery import SourceFileLoader
|
||||
from importlib.util import spec_from_loader, module_from_spec
|
||||
loader = SourceFileLoader('func', 'tests/dictionaries/../eosfunc/test.py')
|
||||
spec = spec_from_loader(loader.name, loader)
|
||||
func = module_from_spec(spec)
|
||||
loader.exec_module(func)
|
||||
for key, value in dict(locals()).items():
|
||||
if key != ['SourceFileLoader', 'func']:
|
||||
setattr(func, key, value)
|
||||
try:
|
||||
from tiramisu3 import *
|
||||
except:
|
||||
from tiramisu import *
|
||||
option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal"}))
|
||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1])
|
@ -2,15 +2,13 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" type="string" description="Redefine description" hidden="True"/>
|
||||
<variable name="mode_conteneur_actif" type="choice" description="Redefine description" hidden="True">
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
<value type="string">a</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>mode_conteneur_actif</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -2,14 +2,12 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" redefine="True" remove_check="True"/>
|
||||
<variable name="mode_conteneur_actif" redefine="True" remove_check="True" remove_choice="True">
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<value type="string">a</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<target>mode_conteneur_actif</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -5,9 +5,17 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule"/>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<variable name="day" type="choice" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<value>pre</value>
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -5,9 +5,17 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule" help="Test help"/>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<variable name="day" type="choice" help="Test help" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<value>pre</value>
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -6,17 +6,12 @@
|
||||
<variable name="description" type="string" multi="True">
|
||||
<value>test</value>
|
||||
</variable>
|
||||
<variable name="mode" type="string">
|
||||
<variable name="mode" type="choice">
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
<value>pre</value>
|
||||
</variable>
|
||||
</family>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>pre</param>
|
||||
<param>post</param>
|
||||
<target>extra.ejabberd.description.mode</target>
|
||||
</check>
|
||||
</constraints>
|
||||
</rougail>
|
||||
|
@ -5,9 +5,17 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule"/>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<variable name="day" type="choice" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<value>pre</value>
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -5,8 +5,18 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule" mandatory="True"/>
|
||||
<variable name="mode" type="schedulemod" mandatory="True"/>
|
||||
<variable name="day" type="choice" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
<value>pre</value>
|
||||
</variable>
|
||||
<variable name="var1" type="string" mandatory="True"/>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -5,9 +5,17 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule"/>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<variable name="day" type="choice" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<value>pre</value>
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -5,9 +5,17 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule"/>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<variable name="day" type="choice" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<value>pre</value>
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -5,9 +5,17 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule"/>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<variable name="day" type="choice" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<value>pre</value>
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -5,9 +5,17 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule"/>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<variable name="day" type="choice" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<value>pre</value>
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -5,9 +5,17 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule"/>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<variable name="day" type="choice" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<value>pre</value>
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -5,9 +5,17 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule"/>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<variable name="day" type="choice" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<value>pre</value>
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -5,9 +5,17 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule"/>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<variable name="day" type="choice" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<value>pre</value>
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -7,17 +7,16 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="number" description="enumvar" help="bla bla bla"/>
|
||||
<variable name="enumvar" type="choice" description="enumvar" help="bla bla bla">
|
||||
<choice type="number">1</choice>
|
||||
<choice type="number">2</choice>
|
||||
<choice type="number">3</choice>
|
||||
<value type="number">1</value>
|
||||
</variable>
|
||||
<variable name="test_variable" type="number" description="test variable"/>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>1</param>
|
||||
<param>2</param>
|
||||
<param>3</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
<condition name="hidden_if_in" source="condition">
|
||||
<param>4</param>
|
||||
<target type="variable">test_variable</target>
|
||||
|
@ -1,32 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general" mode="expert">
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar2" type="string" description="multi">
|
||||
<value>c</value>
|
||||
</variable>
|
||||
<variable name="enumvar" type="string" description="multi" help="bla bla bla">
|
||||
<value>c</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
</rougail>
|
@ -1,17 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" redefine="True">
|
||||
<value>c</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>c</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
</rougail>
|
@ -2,8 +2,10 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>a</value>
|
||||
<variable name="mode_conteneur_actif" type="choice" description="No change">
|
||||
<value type="string">a</value>
|
||||
<choice type="variable">var</choice>
|
||||
<choice type="string">d</choice>
|
||||
</variable>
|
||||
<variable name="var" type="string" description="New variable" multi="True">
|
||||
<value>a</value>
|
||||
@ -12,11 +14,5 @@
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param type="variable">var</param>
|
||||
<param>d</param>
|
||||
<target>mode_conteneur_actif</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -2,8 +2,10 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>a</value>
|
||||
<variable name="mode_conteneur_actif" type="choice" description="No change">
|
||||
<value type="string">a</value>
|
||||
<choice type="variable">var</choice>
|
||||
<choice type="variable">var2</choice>
|
||||
</variable>
|
||||
<variable name="var" type="string" description="New variable" multi="True">
|
||||
<value>a</value>
|
||||
@ -17,11 +19,5 @@
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param type="variable">var</param>
|
||||
<param type="variable">var2</param>
|
||||
<target>mode_conteneur_actif</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -7,15 +7,10 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="string" description="enumvar">
|
||||
<value>non</value>
|
||||
<variable name="enumvar" type="choice" description="multi" help="bla bla bla">
|
||||
<value type="string">c</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param type="number">1</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
@ -2,18 +2,14 @@
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>a</value>
|
||||
<variable name="mode_conteneur_actif" type="choice" description="No change">
|
||||
<value type="string">a</value>
|
||||
<choice type="variable">var</choice>
|
||||
</variable>
|
||||
<variable name="var" type="string" description="New variable">
|
||||
<value>a</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param type="variable">var</param>
|
||||
<target>mode_conteneur_actif</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -9,12 +9,11 @@
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="string" description="multi" help="bla bla bla">
|
||||
<value>c</value>
|
||||
<choice type="string">a</choice>
|
||||
<choice type="string">b</choice>
|
||||
<choice type="string">c</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
@ -7,13 +7,11 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="number" description="enumvar" help="bla bla bla"/>
|
||||
<variable name="enumvar" type="choice" description="enumvar" help="bla bla bla">
|
||||
<choice type="number"/>
|
||||
<value type="number"/>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param type="number"/>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
||||
|
@ -5,9 +5,17 @@
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule"/>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<variable name="day" type="choice" mandatory="True">
|
||||
<choice>none</choice>
|
||||
<choice>daily</choice>
|
||||
<choice>weekly</choice>
|
||||
<choice>monthly</choice>
|
||||
<value>none</value>
|
||||
</variable>
|
||||
<variable name="mode" type="choice" mandatory="True">
|
||||
<value>pre</value>
|
||||
<choice>pre</choice>
|
||||
<choice>post</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
@ -7,17 +7,13 @@
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="string" description="enumvar">
|
||||
<value>a</value>
|
||||
<variable name="enumvar" type="choice" description="enumvar">
|
||||
<value type="string">a</value>
|
||||
<choice type="string">1</choice>
|
||||
<choice type="string">2</choice>
|
||||
<choice type="string">3</choice>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>1</param>
|
||||
<param>2</param>
|
||||
<param>3</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
<constraints/>
|
||||
</rougail>
|
@ -1,21 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general" mode="expert">
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
</family>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="enumvar" type="number" description="enumvar"/>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param>a</param>
|
||||
<param>b</param>
|
||||
<param>c</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
</rougail>
|
@ -1,15 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="enumfam" mode="expert">
|
||||
<variable name="str" multi="True"/>
|
||||
<variable name="enumvar" type="number"/>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param type="variable">str</param>
|
||||
<target>enumvar</target>
|
||||
</check>
|
||||
</constraints>
|
||||
</rougail>
|
@ -1,21 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.10">
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>a</value>
|
||||
</variable>
|
||||
<variable name="var" type="string" description="New variable" multi="True">
|
||||
<value>a</value>
|
||||
<value>b</value>
|
||||
<value>c</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
<constraints>
|
||||
<check name="valid_enum">
|
||||
<param type="variable" optional="True">var</param>
|
||||
<target>mode_conteneur_actif</target>
|
||||
</check>
|
||||
</constraints>
|
||||
</rougail>
|
Reference in New Issue
Block a user