update mode
This commit is contained in:
@ -11,8 +11,8 @@ try:
|
||||
from tiramisu3 import *
|
||||
except:
|
||||
from tiramisu import *
|
||||
option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"mandatory", "normal"}))
|
||||
option_4 = StrOption(name="mode_conteneur_actif1", doc="No change", default="non", properties=frozenset({"basic", "mandatory"}))
|
||||
option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default=Calculation(func.calc_val, Params((ParamOption(option_4)))), properties=frozenset({"expert", "mandatory"}))
|
||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"normal"}))
|
||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"basic"}))
|
||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1])
|
||||
|
@ -13,7 +13,7 @@ except:
|
||||
from tiramisu import *
|
||||
option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="oui", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal"}))
|
||||
option_5 = NetmaskOption(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", multi=True)
|
||||
option_6 = NetworkOption(name="nut_monitor_host", doc="Adresse IP du réseau de l'esclave", multi=True, properties=frozenset({"mandatory", "normal"}))
|
||||
option_6 = NetworkOption(name="nut_monitor_host", doc="Adresse IP du réseau de l'esclave", multi=True, properties=frozenset({"basic", "mandatory"}))
|
||||
option_4 = Leadership(name="nut_monitor_netmask", doc="Masque de l'IP du réseau de l'esclave", children=[option_5, option_6], properties=frozenset({"normal"}))
|
||||
option_2 = OptionDescription(name="general", doc="général", children=[option_3, option_4], properties=frozenset({"normal"}))
|
||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||
|
@ -2,14 +2,14 @@
|
||||
<rougail>
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" type="string" description="leader" multi="True">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
<variable name="leader" type="string" description="leader" multi="True"/>
|
||||
<variable name="follower1" type="string" description="follower1">
|
||||
<value>value</value>
|
||||
</variable>
|
||||
<variable name="follower2" type="string" description="follower2"/>
|
||||
<variable name="mode_conteneur_actif" type="string" description="leader" multi="True">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
<variable name="leader" type="string" description="leader" multi="True"/>
|
||||
<variable name="follower1" type="string" description="follower1">
|
||||
<value>value</value>
|
||||
</variable>
|
||||
<variable name="follower2" type="string" description="follower2"/>
|
||||
</family>
|
||||
</variables>
|
||||
|
||||
|
@ -2,19 +2,19 @@
|
||||
<rougail>
|
||||
<variables>
|
||||
<family name="general">
|
||||
<variable name="mode_conteneur_actif" type="string" description="leader" multi="True">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
<variable name="leader" type="string" description="leader" multi="True">
|
||||
<value>leader</value>
|
||||
</variable>
|
||||
<variable name="follower1" type="string" description="follower1" multi="True">
|
||||
<value>value</value>
|
||||
</variable>
|
||||
<variable name="follower2" type="string" description="follower2" multi="True">
|
||||
<value>value1</value>
|
||||
<value>value2</value>
|
||||
</variable>
|
||||
<variable name="mode_conteneur_actif" type="string" description="leader" multi="True">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
<variable name="leader" type="string" description="leader" multi="True">
|
||||
<value>leader</value>
|
||||
</variable>
|
||||
<variable name="follower1" type="string" description="follower1" multi="True">
|
||||
<value>value</value>
|
||||
</variable>
|
||||
<variable name="follower2" type="string" description="follower2" multi="True">
|
||||
<value>value1</value>
|
||||
<value>value2</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
||||
|
@ -14,8 +14,8 @@ except:
|
||||
option_3 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"mandatory", "normal"}))
|
||||
option_5 = StrOption(name="leader", doc="leader", multi=True)
|
||||
option_6 = StrOption(name="follower1", doc="follower1", multi=True, properties=frozenset({"normal"}))
|
||||
option_7 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"normal"}))
|
||||
option_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"normal"}))
|
||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"normal"}))
|
||||
option_7 = StrOption(name="follower2", doc="follower2", multi=True, properties=frozenset({"basic"}))
|
||||
option_4 = Leadership(name="leader", doc="leader", children=[option_5, option_6, option_7], properties=frozenset({"basic"}))
|
||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"basic"}))
|
||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1])
|
||||
|
12
tests/dictionaries/45multi_family_basic/00-base.xml
Normal file
12
tests/dictionaries/45multi_family_basic/00-base.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail>
|
||||
<variables>
|
||||
<family name="base">
|
||||
<family name="subfamily">
|
||||
<variable name="variable" mode="basic"/>
|
||||
</family>
|
||||
</family>
|
||||
</variables>
|
||||
</rougail>
|
||||
<!-- vim: ts=4 sw=4 expandtab
|
||||
-->
|
0
tests/dictionaries/45multi_family_basic/__init__.py
Normal file
0
tests/dictionaries/45multi_family_basic/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
{"rougail.base.subfamily.variable": null}
|
18
tests/dictionaries/45multi_family_basic/tiramisu/base.py
Normal file
18
tests/dictionaries/45multi_family_basic/tiramisu/base.py
Normal file
@ -0,0 +1,18 @@
|
||||
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_4 = StrOption(name="variable", doc="variable", properties=frozenset({"basic"}))
|
||||
option_3 = OptionDescription(name="subfamily", doc="subfamily", children=[option_4], properties=frozenset({"basic"}))
|
||||
option_2 = OptionDescription(name="base", doc="base", children=[option_3], properties=frozenset({"basic"}))
|
||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1])
|
12
tests/dictionaries/80mode_conflict/00-base.xml
Normal file
12
tests/dictionaries/80mode_conflict/00-base.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail>
|
||||
<variables>
|
||||
<family name="général" mode="normal">
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change" auto_save="True" mode="expert">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
</rougail>
|
||||
<!-- vim: ts=4 sw=4 expandtab
|
||||
-->
|
0
tests/dictionaries/80mode_conflict/__init__.py
Normal file
0
tests/dictionaries/80mode_conflict/__init__.py
Normal file
0
tests/dictionaries/80mode_conflict/errno_62
Normal file
0
tests/dictionaries/80mode_conflict/errno_62
Normal file
26
tests/dictionaries/80mode_leadership_conflict/00-base.xml
Normal file
26
tests/dictionaries/80mode_leadership_conflict/00-base.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail>
|
||||
<variables>
|
||||
<family name="general" mode="expert">
|
||||
<variable name="mode_conteneur_actif" type="string" description="No change">
|
||||
<value>non</value>
|
||||
</variable>
|
||||
</family>
|
||||
<family name="leadermode">
|
||||
<variable name="leader" type="string" description="leader" multi="True" mode="expert"/>
|
||||
<variable name="follower1" type="string" description="follower1" mode="normal"/>
|
||||
<variable name="follower2" type="string" description="follower2"/>
|
||||
</family>
|
||||
</variables>
|
||||
|
||||
<constraints>
|
||||
<fill name="calc_list">
|
||||
<param name="valeur">valfill</param>
|
||||
<target>leader</target>
|
||||
</fill>
|
||||
<group leader="leader">
|
||||
<follower>follower1</follower>
|
||||
<follower>follower2</follower>
|
||||
</group>
|
||||
</constraints>
|
||||
</rougail>
|
12
tests/dictionaries/80multi_family_mode_conflict/00-base.xml
Normal file
12
tests/dictionaries/80multi_family_mode_conflict/00-base.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail>
|
||||
<variables>
|
||||
<family name="base" mode="expert">
|
||||
<family name="subfamily">
|
||||
<variable name="variable" mode="basic"/>
|
||||
</family>
|
||||
</family>
|
||||
</variables>
|
||||
</rougail>
|
||||
<!-- vim: ts=4 sw=4 expandtab
|
||||
-->
|
Reference in New Issue
Block a user