gremond
f4503f3b10
Co-authored-by: gwen <gwenaelremond@free.fr> Co-authored-by: gwen <gwenael.remond@free.fr> Co-authored-by: Emmanuel Garette <egarette@silique.fr> Reviewed-on: #24 Co-authored-by: gremond <gwenael.remond@protonmail.com> Co-committed-by: gremond <gwenael.remond@protonmail.com>
13 lines
1.2 KiB
Python
13 lines
1.2 KiB
Python
from tiramisu import *
|
|
from tiramisu.setting import ALLOWED_LEADER_PROPERTIES
|
|
from re import compile as re_compile
|
|
from rougail.tiramisu import func, dict_env, load_functions, ConvertDynOptionDescription
|
|
load_functions('tests/dictionaries/../eosfunc/test.py')
|
|
ALLOWED_LEADER_PROPERTIES.add("basic")
|
|
ALLOWED_LEADER_PROPERTIES.add("standard")
|
|
ALLOWED_LEADER_PROPERTIES.add("advanced")
|
|
option_2 = PortOption(name="variable1", doc="a port variable", allow_private=True, properties=frozenset({"basic", "mandatory"}), informations={'type': 'port'})
|
|
option_3 = PortOption(name="variable2", doc="a port variable with default value", default="8080", allow_private=True, properties=frozenset({"mandatory", "standard"}), informations={'type': 'port'})
|
|
option_4 = PortOption(name="variable3", doc="a port variable with integer default value", default="8080", allow_private=True, properties=frozenset({"mandatory", "standard"}), informations={'type': 'port'})
|
|
optiondescription_1 = OptionDescription(name="rougail", doc="Rougail", children=[option_2, option_3, option_4], properties=frozenset({"basic"}))
|
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_1])
|