refactor
This commit is contained in:
25
tests/flattener_dicos/60extra_separators/00-base.xml
Normal file
25
tests/flattener_dicos/60extra_separators/00-base.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail>
|
||||
|
||||
<services/>
|
||||
|
||||
<variables>
|
||||
<family name="général">
|
||||
<variable name="mode_conteneur_actif" type="oui/non" description="No change" hidden="True">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
<variable name="activer_ejabberd" type="oui/non" description="No change" hidden="True">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
</family>
|
||||
<separators/>
|
||||
</variables>
|
||||
|
||||
<constraints>
|
||||
</constraints>
|
||||
|
||||
<help/>
|
||||
|
||||
</rougail>
|
||||
<!-- vim: ts=4 sw=4 expandtab
|
||||
-->
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<rougail>
|
||||
<variables>
|
||||
<family name='ejabberd'>
|
||||
<variable name="description" type="string">
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable name="day" type="schedule"></variable>
|
||||
<variable name="mode" type="schedulemod">
|
||||
<value>pre</value>
|
||||
</variable>
|
||||
</family>
|
||||
<separators>
|
||||
<separator name="extra.ejabberd.day">Séparateur</separator>
|
||||
</separators>
|
||||
</variables>
|
||||
<constraints>
|
||||
<fill name='calc_multi_condition' target='extra.ejabberd.day'>
|
||||
<param>non</param>
|
||||
<param type='variable' name='condition_1' hidden='False'>activer_ejabberd</param>
|
||||
<param name='match'>none</param>
|
||||
<param name='mismatch'>daily</param>
|
||||
</fill>
|
||||
</constraints>
|
||||
</rougail>
|
@ -0,0 +1 @@
|
||||
{"rougail.general.mode_conteneur_actif": "non", "rougail.general.activer_ejabberd": "non", "extra.ejabberd.description": "Exportation de la base de ejabberd", "extra.ejabberd.day": null, "extra.ejabberd.mode": "pre"}
|
59
tests/flattener_dicos/60extra_separators/result/00-base.xml
Normal file
59
tests/flattener_dicos/60extra_separators/result/00-base.xml
Normal file
@ -0,0 +1,59 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail>
|
||||
<family doc="rougail" name="rougail">
|
||||
<family doc="général" name="general">
|
||||
<property>normal</property>
|
||||
<variable doc="No change" multi="False" name="mode_conteneur_actif" type="choice">
|
||||
<choice type="string">oui</choice>
|
||||
<choice type="string">non</choice>
|
||||
<property>force_default_on_freeze</property>
|
||||
<property>frozen</property>
|
||||
<property>hidden</property>
|
||||
<property>mandatory</property>
|
||||
<property>normal</property>
|
||||
<value type="string">non</value>
|
||||
</variable>
|
||||
<variable doc="No change" multi="False" name="activer_ejabberd" type="choice">
|
||||
<choice type="string">oui</choice>
|
||||
<choice type="string">non</choice>
|
||||
<property>force_default_on_freeze</property>
|
||||
<property>frozen</property>
|
||||
<property>hidden</property>
|
||||
<property>mandatory</property>
|
||||
<property>normal</property>
|
||||
<value type="string">non</value>
|
||||
</variable>
|
||||
</family>
|
||||
</family>
|
||||
<family doc="extra" name="extra">
|
||||
<family doc="ejabberd" name="ejabberd">
|
||||
<property>normal</property>
|
||||
<variable doc="description" multi="False" name="description" type="string">
|
||||
<property>mandatory</property>
|
||||
<property>normal</property>
|
||||
<value>Exportation de la base de ejabberd</value>
|
||||
</variable>
|
||||
<variable doc="day" multi="False" name="day" separator="Séparateur" type="choice">
|
||||
<choice type="string">none</choice>
|
||||
<choice type="string">daily</choice>
|
||||
<choice type="string">weekly</choice>
|
||||
<choice type="string">monthly</choice>
|
||||
<property>mandatory</property>
|
||||
<property>normal</property>
|
||||
<value name="calc_multi_condition" type="calculation">
|
||||
<param transitive="False" type="string">non</param>
|
||||
<param name="condition_1" type="variable">rougail.general.activer_ejabberd</param>
|
||||
<param name="match" transitive="False" type="string">none</param>
|
||||
<param name="mismatch" transitive="False" type="string">daily</param>
|
||||
</value>
|
||||
</variable>
|
||||
<variable doc="mode" multi="False" name="mode" type="choice">
|
||||
<choice type="string">pre</choice>
|
||||
<choice type="string">post</choice>
|
||||
<property>mandatory</property>
|
||||
<property>normal</property>
|
||||
<value type="string">pre</value>
|
||||
</variable>
|
||||
</family>
|
||||
</family>
|
||||
</rougail>
|
Reference in New Issue
Block a user