for creole's zephir2 branch

This commit is contained in:
2019-11-23 08:17:35 +01:00
commit 841643e76e
700 changed files with 68183 additions and 0 deletions

27
tests/dicos/00_base.xml Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='general'>
<variable name='mode_conteneur_actif' type='oui/non' description="Le serveur est en mode conteneur" hidden="True">
<value>non</value>
</variable>
<variable name='module_instancie' type='oui/non' description="Le serveur a été instancié"/>
</family>
<separators/>
</variables>
<constraints>
<auto name='is_instanciate' target='module_instancie'>
</auto>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='fixedvariable' type='string' description="Fixed value for calculated autofreeze" />
<variable name='autofreeze' type='string' description="Auto_freeze normale" auto_freeze='True'/>
<variable name='autofreeze_x' type='string' description="Auto_freeze experte" auto_freeze='True' mode='expert'/>
<variable name='autofreeze_filled' type='string' description="Auto_freeze filled" auto_freeze='True'/>
</family>
<separators/>
</variables>
<constraints>
<fill name='calc_val' target='autofreeze_filled'>
<param type='eole'>fixedvariable</param>
</fill>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='autosave' multi='True' auto_save='True'>
<value>a</value>
<value>b</value>
</variable>
</family>
<separators/>
</variables>
<constraints>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='adresse_ip' type='ip'/>
<variable name='adresse_network' type='network'/>
<variable name='adresse_netmask' type='netmask'/>
</family>
<separators/>
</variables>
<constraints>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='obligatoire' type='string' description='Variable obligatoire' mandatory='True'/>
<variable name='facultatif' type='string' description='Variable non obligatoire' mandatory='False'>
<value>avec valeur</value>
</variable>
<variable name='autofreeze' type='string' description="Auto_freeze normale" auto_freeze='True'/>
<variable name='autofreeze_x' type='string' description="Auto_freeze experte" auto_freeze='True' mode='expert'/>
</family>
<separators/>
</variables>
<constraints>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='sample'>
<value>sample</value>
</variable>
<variable name='disable' type='oui/non'>
<value>non</value>
</variable>
<variable name='check_unknown'/>
<variable name='check_disabled'/>
</family>
<separators/>
</variables>
<constraints>
<check name="valid_differ" target="check_unknown">
<param type='eole' optional='True'>unknown</param>
</check>
<check name="valid_differ" target="check_disabled">
<param type='eole' hidden='False'>sample</param>
</check>
<condition name='disabled_if_in' source='disable'>
<param>oui</param>
<target type='variable'>sample</target>
</condition>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='cible'>
<value>oui</value>
</variable>
<variable name='source1' type='oui/non'>
<value>oui</value>
</variable>
<variable name='source2' type='oui/non'>
<value>oui</value>
</variable>
</family>
<separators/>
</variables>
<constraints>
<condition name='disabled_if_in' source='source1'>
<param>non</param>
<target type='variable'>cible</target>
</condition>
<condition name='disabled_if_not_in' source='source2'>
<param>oui</param>
<target type='variable'>cible</target>
</condition>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<variables>
<family name='test'>
<variable name='ma_master' type='string' description='Je suis une variable maitre' multi="True"/>
<variable name='ma_slave1' type='oui/non' description='Je suis une variable esclave qui cache'>
<value>oui</value>
</variable>
<variable name='ma_slave2' type='string' description='Je suis une variable esclave qui peut être caché'/>
<variable name='ma_slave3' type='string' description='Je suis une variable esclave qui peut être caché aussi'/>
</family>
</variables>
<constraints>
<group master='ma_master'>
<slave>ma_slave1</slave>
<slave>ma_slave2</slave>
<slave>ma_slave3</slave>
</group>
<condition name='disabled_if_in' source='ma_slave1'>
<param>non</param>
<target type='variable'>ma_slave2</target>
</condition>
<condition name='disabled_if_in' source='ma_slave1'>
<param>oui</param>
<target type='variable'>ma_slave3</target>
</condition>
</constraints>
<help/>
</creole>

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='mandatory_if'/>
<variable name='mandatory_ifnot'/>
<variable name='active_mandatory' type='oui/non'>
<value>non</value>
</variable>
</family>
<separators/>
</variables>
<constraints>
<condition name='mandatory_if_in' source='active_mandatory'>
<param>oui</param>
<target type='variable'>mandatory_if</target>
</condition>
<condition name='mandatory_if_not_in' source='active_mandatory'>
<param>non</param>
<target type='variable'>mandatory_ifnot</target>
</condition>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='condition' type='oui/non' description='Condition 1'>
<value>oui</value>
</variable>
<variable name='condition2' type='oui/non' description='Condition 2'>
<value>non</value>
</variable>
<variable name='resultat1' description='Option 1' >
<value>resultat1</value>
</variable>
<variable name='resultat2' description='Option 2'>
<value>resultat2</value>
</variable>
<variable name='target1' description='Target 1'/>
<variable name='target2' description='Target 2'/>
<variable name='target3' description='Target 3'/>
</family>
<separators/>
</variables>
<constraints>
<fill name='calc_multi_condition' target='target1'>
<param>non</param>
<param type='eole' name='condition_1'>condition</param>
<param type='eole' name='match'>resultat1</param>
<param type='eole' name='mismatch' hidden='False'>resultat2</param>
</fill>
<fill name='calc_multi_condition' target='target2'>
<param>oui</param>
<param type='eole' name='condition_1'>condition</param>
<param type='eole' name='match'>resultat1</param>
<param type='eole' name='mismatch' hidden='False'>resultat2</param>
<param name='default_mismatch'>mismatch</param>
</fill>
<fill name='calc_multi_condition' target='target3'>
<param>['oui', 'non']</param>
<param type='eole' name='condition_1'>condition</param>
<param type='eole' name='condition_2'>condition2</param>
<param name='match'>oui</param>
<param name='mismatch'>non</param>
</fill>
<condition name='disabled_if_in' source='condition'>
<param>non</param>
<target type='variable'>resultat2</target>
</condition>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='mail_src' type='string' description='Adresse source'/>
<variable name='mail_dest' type='mail' description='Adresse destination' multi='True'/>
<variable name='condition' type='oui/non' description='Condition 1'>
<value>oui</value>
</variable>
</family>
<separators/>
</variables>
<constraints>
<fill name='calc_multi_val' target='mail_dest'>
<param type='eole'>mail_src</param>
</fill>
<condition name='disabled_if_in' source='condition'>
<param>non</param>
<target type='variable'>mail_dest</target>
</condition>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files>
</files>
<variables>
<family name='test'>
<variable name='vmaster' mandatory='True' multi='True'/>
<variable name='vslave1' mandatory='True'/>
<variable name='vslave2'>
<value>valdef</value>
</variable>
<variable name='vslave3' mandatory='True'/>
<variable name='vslave4'/>
</family>
</variables>
<constraints>
<fill name='calc_val' target='vslave3'>
<param name='valeur'>valfill</param>
</fill>
<group master='vmaster'>
<slave>vslave1</slave>
<slave>vslave2</slave>
<slave>vslave3</slave>
<slave>vslave4</slave>
</group>
</constraints>
<help />
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='abc1'>
<value>a</value>
</variable>
<variable name='abc2'>
<value>a</value>
</variable>
<variable name='abc3'>
<value>a</value>
</variable>
<variable name='fill2auto'/>
<variable name='auto2fill'/>
<variable name='disabled_if'/>
<variable name='disabled_if_redefine'/>
<variable name='enabled_if'/>
<variable name='enabled_if_redefine'/>
<variable name='frozen_if'/>
<variable name='frozen_if_redefine'/>
<variable name='condition'>
<value>oui</value>
</variable>
</family>
<separators/>
</variables>
<constraints>
<check name="valid_enum" target="abc1">
<param>['a','b','c']</param>
</check>
<check name="valid_enum" target="abc2">
<param>['a','b','c']</param>
</check>
<check name="valid_enum" target="abc3">
<param>['a','b','c']</param>
</check>
<fill name='calc_val' target='fill2auto'>
<param name='valeur'>valeur</param>
</fill>
<auto name='concat' target='auto2fill'>
<param name='valeur1'>valeur1</param>
<param name='valeur2'>valeur2</param>
</auto>
<condition name='disabled_if_in' source='condition'>
<param>oui</param>
<target type='variable'>disabled_if</target>
<target type='variable'>disabled_if_redefine</target>
</condition>
<condition name='disabled_if_in' source='condition'>
<param>non</param>
<target type='variable'>enabled_if</target>
<target type='variable'>enabled_if_redefine</target>
</condition>
<condition name='frozen_if_in' source='condition'>
<param>oui</param>
<target type='variable'>frozen_if</target>
<target type='variable'>frozen_if_redefine</target>
</condition>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<containers/>
<variables>
<family name='test'>
<variable name='abc2' redefine='True'>
<value>b</value>
</variable>
<variable name='abc3' redefine='True' remove_check='True'>
<value>b</value>
</variable>
<variable name='fill2auto' redefine='True'/>
<variable name='auto2fill' redefine='True'/>
<variable name='disabled_if_redefine' redefine='True' remove_condition='True' disabled='False'/>
<variable name='enabled_if_redefine' redefine='True' remove_condition='True' disabled='True'/>
<variable name='frozen_if_redefine' redefine='True' remove_condition='True' />
</family>
<separators/>
</variables>
<constraints>
<auto name='concat' target='fill2auto'>
<param name='valeur1'>valeur1</param>
<param name='valeur2'>valeur2</param>
</auto>
<fill name='calc_val' target='auto2fill'>
<param name='valeur'>valeur</param>
</fill>
</constraints>
<help/>
</creole>
<!-- vim: ts=4 sw=4 expandtab
-->

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<variables>
<family name='test'>
<variable name='domaine' type='domain'/>
<variable name='domaine_strict' type='domain_strict'/>
<variable name='nom_hote' type='hostname'/>
<variable name='nom_hote_strict' type='hostname_strict'/>
</family>
</variables>
<constraints>
</constraints>
<help/>
</creole>

View File

@ -0,0 +1 @@
../00_base.xml

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files/>
<variables>
<family name='test'>
<variable name='test_value' type='string' description='"fr", "eu", "i2" est autorisé ici' mandatory='True'>
<value>FR</value>
</variable>
<variable name='test_country_name' type='string' description='pas de problème avec "fr" et "eu" mais problème "i2"'/>
<variable name='test_country_name2' type='string' description='"fr" => "FR", "eu" => "EU" et "i2" => "FR"'/>
</family>
</variables>
<constraints>
<check name='valid_country' target='test_country_name'>
</check>
<fill name='calc_val' target='test_country_name'>
<param type='eole' name='valeur'>test_value</param>
</fill>
<fill name='calc_ssl_country_name' target='test_country_name2'>
<param type='eole' name='valeur'>test_value</param>
</fill>
</constraints>
<help/>
</creole>