valid_enum is now choice
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user