gremond
ccb4eff30b
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>
12 lines
1 KiB
Python
12 lines
1 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_1 = PortOption(name="variable1", doc="a port variable", allow_private=True, properties=frozenset({"basic", "mandatory"}), informations={'type': 'port'})
|
|
option_2 = PortOption(name="variable2", doc="a port variable with default value", default="8080", allow_private=True, properties=frozenset({"mandatory", "standard"}), informations={'type': 'port'})
|
|
option_3 = PortOption(name="variable3", doc="a port variable with integer default value", default="8080", allow_private=True, properties=frozenset({"mandatory", "standard"}), informations={'type': 'port'})
|
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_2, option_3])
|