remove group constrainte, it's now a normal group
This commit is contained in:
10
tests/dictionaries_old/61extra_dyn/00-base.xml
Normal file
10
tests/dictionaries_old/61extra_dyn/00-base.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.9">
|
||||
<variables>
|
||||
<family name="general" description="général">
|
||||
<variable name="varname" type="string" description="No change" multi="True">
|
||||
<value>a</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
</rougail>
|
0
tests/dictionaries_old/61extra_dyn/__init__.py
Normal file
0
tests/dictionaries_old/61extra_dyn/__init__.py
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.9">
|
||||
<variables>
|
||||
<family name="ejabberd" dynamic="varname">
|
||||
<variable name="mode" type="string"/>
|
||||
</family>
|
||||
</variables>
|
||||
</rougail>
|
12
tests/dictionaries_old/61extra_dyn/makedict/after.json
Normal file
12
tests/dictionaries_old/61extra_dyn/makedict/after.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"rougail.general.varname": {
|
||||
"owner": "default",
|
||||
"value": [
|
||||
"a"
|
||||
]
|
||||
},
|
||||
"extra.ejabberda.modea": {
|
||||
"owner": "default",
|
||||
"value": null
|
||||
}
|
||||
}
|
6
tests/dictionaries_old/61extra_dyn/makedict/base.json
Normal file
6
tests/dictionaries_old/61extra_dyn/makedict/base.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"rougail.general.varname": [
|
||||
"a"
|
||||
],
|
||||
"extra.ejabberda.modea": null
|
||||
}
|
12
tests/dictionaries_old/61extra_dyn/makedict/before.json
Normal file
12
tests/dictionaries_old/61extra_dyn/makedict/before.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"rougail.general.varname": {
|
||||
"owner": "default",
|
||||
"value": [
|
||||
"a"
|
||||
]
|
||||
},
|
||||
"extra.ejabberda.modea": {
|
||||
"owner": "default",
|
||||
"value": null
|
||||
}
|
||||
}
|
21
tests/dictionaries_old/61extra_dyn/tiramisu/base.py
Normal file
21
tests/dictionaries_old/61extra_dyn/tiramisu/base.py
Normal file
@ -0,0 +1,21 @@
|
||||
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 *
|
||||
from rougail.tiramisu import ConvertDynOptionDescription
|
||||
option_3 = StrOption(name="varname", doc="No change", multi=True, default=['a'], default_multi="a", properties=frozenset({"mandatory", "normal"}))
|
||||
option_2 = OptionDescription(name="general", doc="général", children=[option_3], properties=frozenset({"normal"}))
|
||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||
option_6 = StrOption(name="mode", doc="mode", properties=frozenset({"normal"}))
|
||||
option_5 = ConvertDynOptionDescription(name="ejabberd", doc="ejabberd", suffixes=Calculation(func.calc_value, Params((ParamOption(option_3, notraisepropertyerror=True)))), children=[option_6], properties=frozenset({"normal"}))
|
||||
option_4 = OptionDescription(name="extra", doc="extra", children=[option_5])
|
||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
Reference in New Issue
Block a user