condition and check

This commit is contained in:
2019-11-27 14:03:34 +01:00
parent 590283ef25
commit 4c84a8b89b
169 changed files with 316 additions and 434 deletions

View File

@ -20,7 +20,6 @@
<constraints>
<check name="valid_enum" target="enumvar">
<param>['a', 'b', 'c', 'é']</param>
<param name="checkval">False</param>
</check>
</constraints>

View File

@ -1 +1 @@
{"creole.general.mode_conteneur_actif": "non", "creole.enumfam.enumvar": "a"}
{"creole.general.mode_conteneur_actif": "non", "creole.enumfam.enumvar": "c"}

View File

@ -1,10 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<creole>
<constraints>
<check name="valid_enum" target="creole.enumfam.enumvar" transitive="True" warnings_only="False">
<param type="string">['a', 'b', 'c', 'é']</param>
</check>
</constraints>
<family doc="" name="creole">
<family doc="general" name="general">
<property>expert</property>
@ -18,10 +13,14 @@
</family>
<family doc="enumfam" name="enumfam">
<property>expert</property>
<variable doc="multi" help="bla bla bla" multi="False" name="enumvar" type="string">
<variable doc="multi" help="bla bla bla" multi="False" name="enumvar" type="choice">
<choice type="string">a</choice>
<choice type="string">b</choice>
<choice type="string">c</choice>
<choice type="string">é</choice>
<property>mandatory</property>
<property>expert</property>
<value>a</value>
<value type="string">c</value>
</variable>
</family>
<separators/>