check owner, deployed_service and various improvment

This commit is contained in:
Emmanuel Garette 2021-02-26 20:38:17 +01:00
parent 46ba8c8067
commit 3e7ae41061
552 changed files with 11074 additions and 95 deletions

View file

@ -198,12 +198,12 @@ Une [variable meneuse ou suiveuse](leadership.md) ne peut pas avoir la propriét
## Variable à valeur en lecture seule automatique ## Variable à valeur en lecture seule automatique
Une variable avec valeur en lecture seule automatique est une variable dont la valeur ne sera plus modifiable par l'utilisateur quand la [variable "instanciated_module" passe à "True"](../dev/config.md). Une variable avec valeur en lecture seule automatique est une variable dont la valeur ne sera plus modifiable par l'utilisateur quand la [variable "server_deployed" passe à "True"](../dev/config.md).
Voici un variable à valeur en lecture seule automatique : Voici un variable à valeur en lecture seule automatique :
``` ```
<variable name="instanciated_module" type="boolean"> <variable name="server_deployed" type="boolean">
<value>False</value> <value>False</value>
</variable> </variable>
<variable name="my_variable" auto_freeze="True"/> <variable name="my_variable" auto_freeze="True"/>

View file

@ -165,11 +165,10 @@ class CheckAnnotator(TargetAnnotator, ParamAnnotator):
variable.values.append(choice) variable.values.append(choice)
if has_variable: if has_variable:
return None return None
for target in check.target: self.objectspace.valid_enums[variable.path] = {'type': variable.ori_type,
self.objectspace.valid_enums[target.name.path] = {'type': variable.ori_type, 'values': values,
'values': values, 'xmlfiles': check.xmlfiles,
'xmlfiles': check.xmlfiles, }
}
return values return values
@staticmethod @staticmethod

View file

@ -77,11 +77,11 @@ class ConditionAnnotator(TargetAnnotator, ParamAnnotator, Walk):
if variable.namespace != self.objectspace.rougailconfig['variable_namespace']: if variable.namespace != self.objectspace.rougailconfig['variable_namespace']:
msg = _(f'auto_freeze is not allowed in extra "{variable.namespace}"') msg = _(f'auto_freeze is not allowed in extra "{variable.namespace}"')
raise DictConsistencyError(msg, 49, variable.xmlfiles) raise DictConsistencyError(msg, 49, variable.xmlfiles)
variable.force_store_value = True
if variable.auto_save:
continue
new_condition = self.objectspace.condition(variable.xmlfiles) new_condition = self.objectspace.condition(variable.xmlfiles)
if variable.auto_freeze: new_condition.name = 'auto_frozen_if_not_in'
new_condition.name = 'auto_frozen_if_not_in'
else:
new_condition.name = 'auto_saved_if_not_in'
new_condition.namespace = variable.namespace new_condition.namespace = variable.namespace
new_condition.source = self.objectspace.rougailconfig['auto_freeze_variable'] new_condition.source = self.objectspace.rougailconfig['auto_freeze_variable']
new_param = self.objectspace.param(variable.xmlfiles) new_param = self.objectspace.param(variable.xmlfiles)
@ -150,9 +150,7 @@ class ConditionAnnotator(TargetAnnotator, ParamAnnotator, Walk):
if condition_name.startswith('hidden_if_'): if condition_name.startswith('hidden_if_'):
return ['hidden', 'frozen', 'force_default_on_freeze'] return ['hidden', 'frozen', 'force_default_on_freeze']
if condition_name == 'auto_frozen_if_not_in': if condition_name == 'auto_frozen_if_not_in':
return ['force_store_value', 'frozen'] return ['frozen']
if condition_name == 'auto_saved_if_not_in':
return ['force_store_value']
return [condition_name.split('_', 1)[0]] return [condition_name.split('_', 1)[0]]
def _get_family_variables_from_target(self, def _get_family_variables_from_target(self,

View file

@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
""" """
from ..i18n import _ from ..i18n import _
from ..error import DictConsistencyError from ..error import DictConsistencyError
from ..utils import normalize_family
class GroupAnnotator: class GroupAnnotator:
@ -83,7 +84,7 @@ class GroupAnnotator:
leader_space, leader_space,
) )
# this variable is not more in ori_leader_family # this variable is not more in ori_leader_family
ori_leader_family.variable.pop(variable.name) ori_leader_family.variable.pop(normalize_family(variable.name))
if follower_names == []: if follower_names == []:
# no more follower # no more follower
break break
@ -104,9 +105,10 @@ class GroupAnnotator:
msg = _(f'the variable "{variable.name}" in a group must be multi') msg = _(f'the variable "{variable.name}" in a group must be multi')
raise DictConsistencyError(msg, 32, variable.xmlfiles) raise DictConsistencyError(msg, 32, variable.xmlfiles)
if hasattr(group, 'name'): if hasattr(group, 'name'):
leadership_name = group.name ori_leadership_name = group.name
else: else:
leadership_name = variable.name ori_leadership_name = variable.name
leadership_name = normalize_family(ori_leadership_name)
leader_space = self.objectspace.leadership(variable.xmlfiles) leader_space = self.objectspace.leadership(variable.xmlfiles)
leader_space.variable = [] leader_space.variable = []
leader_space.name = leadership_name leader_space.name = leadership_name
@ -120,18 +122,18 @@ class GroupAnnotator:
elif variable.name == leadership_name and hasattr(variable, 'description'): elif variable.name == leadership_name and hasattr(variable, 'description'):
leader_space.doc = variable.description leader_space.doc = variable.description
else: else:
leader_space.doc = leadership_name leader_space.doc = ori_leadership_name
leadership_path = ori_leader_family.path + '.' + leadership_name leadership_path = ori_leader_family.path + '.' + leadership_name
self.objectspace.paths.add_leadership(variable.namespace, self.objectspace.paths.add_leadership(variable.namespace,
leadership_path, leadership_path,
leader_space, leader_space,
) )
ori_leader_family.variable[variable.name] = leader_space ori_leader_family.variable[normalize_family(variable.name)] = leader_space
leader_space.variable.append(variable) leader_space.variable.append(variable)
self.objectspace.paths.set_leader(variable.namespace, self.objectspace.paths.set_leader(variable.namespace,
ori_leader_family.path, ori_leader_family.path,
leadership_name, leadership_name,
variable.name, normalize_family(variable.name),
) )
return leader_space return leader_space
@ -150,7 +152,7 @@ class GroupAnnotator:
self.objectspace.paths.set_leader(variable.namespace, self.objectspace.paths.set_leader(variable.namespace,
leader_family_name, leader_family_name,
leader_space.name, leader_space.name,
variable.name, normalize_family(variable.name),
) )
if leader_space.hidden: if leader_space.hidden:
variable.frozen = True variable.frozen = True

View file

@ -64,6 +64,7 @@ class ParamAnnotator:
try: try:
path, suffix = self.objectspace.paths.get_variable_path(param.text, path, suffix = self.objectspace.paths.get_variable_path(param.text,
obj.namespace, obj.namespace,
param.xmlfiles,
) )
param.text = self.objectspace.paths.get_variable(path) param.text = self.objectspace.paths.get_variable(path)
if variable_type and param.text.type != variable_type: if variable_type and param.text.type != variable_type:

View file

@ -71,7 +71,7 @@ class PropertyAnnotator(Walk):
if 'force_store_value' in variable.properties and \ if 'force_store_value' in variable.properties and \
'force_default_on_freeze' in variable.properties: # pragma: no cover 'force_default_on_freeze' in variable.properties: # pragma: no cover
# should not appened # should not appened
msg = _('cannot have auto_freeze or auto_store with the hidden ' msg = _('cannot have auto_freeze or auto_save with the hidden '
f'variable "{variable.name}"') f'variable "{variable.name}"')
raise DictConsistencyError(msg, 50, variable.xmlfiles) raise DictConsistencyError(msg, 50, variable.xmlfiles)
if not variable.properties: if not variable.properties:

View file

@ -292,9 +292,9 @@ class ServiceAnnotator:
'please use a variable multiple if you want have more than one IP') 'please use a variable multiple if you want have more than one IP')
raise DictConsistencyError(msg, 67, ip.xmlfiles) raise DictConsistencyError(msg, 67, ip.xmlfiles)
self.uniq_ip.append(service_name) self.uniq_ip.append(service_name)
variable = self.objectspace.paths.get_variable(ip.name) variable = self.objectspace.paths.get_variable(ip.name, ip.xmlfiles)
if variable.type not in ['ip', 'network', 'network_cidr']: if variable.type not in ['ip', 'network', 'network_cidr']:
msg = _('ip cannot be linked to "{variable.type}" variable') msg = _(f'ip cannot be linked to "{variable.type}" variable "{ip.name}"')
raise DictConsistencyError(msg, 70, ip.xmlfiles) raise DictConsistencyError(msg, 70, ip.xmlfiles)
if variable.type in ['ip', 'network_cidr'] and hasattr(ip, 'netmask'): if variable.type in ['ip', 'network_cidr'] and hasattr(ip, 'netmask'):
msg = _(f'ip with ip_type "{variable.type}" must not have netmask') msg = _(f'ip with ip_type "{variable.type}" must not have netmask')

View file

@ -28,6 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from ..i18n import _ from ..i18n import _
from ..error import DictConsistencyError from ..error import DictConsistencyError
from ..objspace import convert_boolean from ..objspace import convert_boolean
from ..utils import normalize_family
CONVERT_OPTION = {'number': dict(opttype="IntOption", func=int), CONVERT_OPTION = {'number': dict(opttype="IntOption", func=int),
@ -170,6 +171,7 @@ class VariableAnnotator(Walk): # pylint: disable=R0903
if not variable.value: if not variable.value:
del variable.value del variable.value
variable.doc = variable.description variable.doc = variable.description
variable.name = normalize_family(variable.name)
del variable.description del variable.description
if variable_type == 'follower': if variable_type == 'follower':
if variable.multi is True: if variable.multi is True:

View file

@ -41,7 +41,7 @@ RougailConfig = {'dictionaries_dir': [join(ROUGAILROOT, 'dictionaries')],
'dtdfilename': join(DTDDIR, 'rougail.dtd'), 'dtdfilename': join(DTDDIR, 'rougail.dtd'),
'functions_file': join(ROUGAILROOT, 'functions.py'), 'functions_file': join(ROUGAILROOT, 'functions.py'),
'variable_namespace': 'rougail', 'variable_namespace': 'rougail',
'auto_freeze_variable': 'instanciated_module', 'auto_freeze_variable': 'server_deployed',
'default_engine': 'creole', 'default_engine': 'creole',
'internal_functions': [], 'internal_functions': [],
'modes_level': ['basic', 'normal', 'expert'], 'modes_level': ['basic', 'normal', 'expert'],

View file

@ -37,7 +37,7 @@
<!-- root element --> <!-- root element -->
<!-- =============== --> <!-- =============== -->
<!ELEMENT rougail (services|variables|constraints|help)*> <!ELEMENT rougail (services|variables|constraints)*>
<!ATTLIST rougail version (0.9) #REQUIRED> <!ATTLIST rougail version (0.9) #REQUIRED>
<!-- ============== --> <!-- ============== -->

View file

@ -328,7 +328,7 @@ class RougailObjSpace:
if redefine is True: if redefine is True:
# cannot redefine an inexistant object # cannot redefine an inexistant object
msg = _(f'Redefined object: "{name}" does not exist yet') msg = _(f'Redefined object: "{name}" does not exist yet')
raise DictConsistencyError(msg, 46, xmlfile) raise DictConsistencyError(msg, 46, [xmlfile])
tag = FORCE_TAG.get(child.tag, child.tag) tag = FORCE_TAG.get(child.tag, child.tag)
if tag not in vars(space): if tag not in vars(space):
setattr(space, tag, {}) setattr(space, tag, {})
@ -352,7 +352,7 @@ class RougailObjSpace:
return None return None
old_family_name = self.paths.get_variable_family_path(name) old_family_name = self.paths.get_variable_family_path(name)
if space.path != old_family_name: if space.path != old_family_name:
msg = _(f'Variable was previously create in family "{old_family_name}", ' msg = _(f'Variable "{name}" was previously create in family "{old_family_name}", '
f'now it is in "{space.path}"') f'now it is in "{space.path}"')
raise DictConsistencyError(msg, 47, space.xmlfiles) raise DictConsistencyError(msg, 47, space.xmlfiles)
return self.paths.get_variable(name) return self.paths.get_variable(name)

View file

@ -24,6 +24,7 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
""" """
from typing import List
from .i18n import _ from .i18n import _
from .error import DictConsistencyError from .error import DictConsistencyError
from .utils import normalize_family from .utils import normalize_family
@ -175,10 +176,11 @@ class Path:
def get_variable(self, def get_variable(self,
name: str, name: str,
xmlfiles: List[str]=[],
) -> 'Variable': # pylint: disable=C0111 ) -> 'Variable': # pylint: disable=C0111
"""Get variable object from a path """Get variable object from a path
""" """
variable, suffix = self._get_variable(name, with_suffix=True) variable, suffix = self._get_variable(name, with_suffix=True, xmlfiles=xmlfiles)
if suffix: if suffix:
raise DictConsistencyError(_(f"{name} is a dynamic variable"), 36, []) raise DictConsistencyError(_(f"{name} is a dynamic variable"), 36, [])
return variable['variableobj'] return variable['variableobj']
@ -193,18 +195,20 @@ class Path:
def get_variable_path(self, def get_variable_path(self,
name: str, name: str,
current_namespace: str, current_namespace: str,
xmlfiles: List[str]=[],
) -> str: # pylint: disable=C0111 ) -> str: # pylint: disable=C0111
"""get full path of a variable """get full path of a variable
""" """
dico, suffix = self._get_variable(name, dico, suffix = self._get_variable(name,
with_suffix=True, with_suffix=True,
xmlfiles=xmlfiles,
) )
namespace = dico['variableobj'].namespace namespace = dico['variableobj'].namespace
if namespace not in [self.variable_namespace, 'services'] and \ if namespace not in [self.variable_namespace, 'services'] and \
current_namespace != namespace: current_namespace != namespace:
msg = _(f'A variable located in the "{namespace}" namespace shall not be used ' msg = _(f'A variable located in the "{namespace}" namespace shall not be used '
f'in the "{current_namespace}" namespace') f'in the "{current_namespace}" namespace')
raise DictConsistencyError(msg, 41, []) raise DictConsistencyError(msg, 41, xmlfiles)
return dico['variableobj'].path, suffix return dico['variableobj'].path, suffix
def path_is_defined(self, def path_is_defined(self,
@ -226,6 +230,7 @@ class Path:
def _get_variable(self, def _get_variable(self,
name: str, name: str,
with_suffix: bool=False, with_suffix: bool=False,
xmlfiles: List[str]=[],
) -> str: ) -> str:
name = '.'.join([normalize_family(subname) for subname in name.split('.')]) name = '.'.join([normalize_family(subname) for subname in name.split('.')])
if name not in self.variables: if name not in self.variables:
@ -238,7 +243,7 @@ class Path:
if variable['is_dynamic']: if variable['is_dynamic']:
return variable, name[len(var_name):] return variable, name[len(var_name):]
if name not in self.variables: if name not in self.variables:
raise DictConsistencyError(_(f'unknown option {name}'), 42, []) raise DictConsistencyError(_(f'unknown option "{name}"'), 42, xmlfiles)
if with_suffix: if with_suffix:
return self.variables[name], None return self.variables[name], None
return self.variables[name] return self.variables[name]

View file

@ -0,0 +1,10 @@
{
"services.tata.activate": {
"owner": "default",
"value": true
},
"services.tata.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,10 @@
{
"services.tata.activate": {
"owner": "default",
"value": true
},
"services.tata.manage": {
"owner": "default",
"value": true
}
}

View file

@ -4,7 +4,7 @@
<variable name="myvar" auto_freeze="True"> <variable name="myvar" auto_freeze="True">
<value>no</value> <value>no</value>
</variable> </variable>
<variable name="instanciated_module" type="boolean"> <variable name="server_deployed" type="boolean">
<value>False</value> <value>False</value>
</variable> </variable>
</variables> </variables>

View file

@ -0,0 +1,10 @@
{
"rougail.myvar": {
"owner": "forced",
"value": "no"
},
"rougail.server_deployed": {
"owner": "default",
"value": false
}
}

View file

@ -1,4 +1,4 @@
{ {
"rougail.myvar": "no", "rougail.myvar": "no",
"rougail.instanciated_module": false "rougail.server_deployed": false
} }

View file

@ -0,0 +1,10 @@
{
"rougail.myvar": {
"owner": "default",
"value": "no"
},
"rougail.server_deployed": {
"owner": "default",
"value": false
}
}

View file

@ -11,7 +11,7 @@ try:
from tiramisu3 import * from tiramisu3 import *
except: except:
from tiramisu import * from tiramisu import *
option_3 = BoolOption(name="instanciated_module", doc="instanciated_module", default=False, properties=frozenset({"mandatory", "normal"})) option_3 = BoolOption(name="server_deployed", doc="server_deployed", default=False, properties=frozenset({"mandatory", "normal"}))
option_2 = StrOption(name="myvar", doc="myvar", default="no", properties=frozenset({"basic", "mandatory", Calculation(func.calc_value, Params(ParamValue('force_store_value'), kwargs={'condition': ParamOption(option_3, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('frozen'), kwargs={'condition': ParamOption(option_3, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)}))})) option_2 = StrOption(name="myvar", doc="myvar", default="no", properties=frozenset({"basic", "force_store_value", "mandatory", Calculation(func.calc_value, Params(ParamValue('frozen'), kwargs={'condition': ParamOption(option_3, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)}))}))
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3]) option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1])

View file

@ -4,7 +4,7 @@
<variable name="my_var" auto_freeze="True" mode="expert"> <variable name="my_var" auto_freeze="True" mode="expert">
<value>no</value> <value>no</value>
</variable> </variable>
<variable name="instanciated_module" type="boolean"> <variable name="server_deployed" type="boolean">
<value>False</value> <value>False</value>
</variable> </variable>
</variables> </variables>

View file

@ -0,0 +1,10 @@
{
"rougail.my_var": {
"owner": "forced",
"value": "no"
},
"rougail.server_deployed": {
"owner": "default",
"value": false
}
}

View file

@ -1,4 +1,4 @@
{ {
"rougail.my_var": "no", "rougail.my_var": "no",
"rougail.instanciated_module": false "rougail.server_deployed": false
} }

View file

@ -0,0 +1,10 @@
{
"rougail.my_var": {
"owner": "default",
"value": "no"
},
"rougail.server_deployed": {
"owner": "default",
"value": false
}
}

View file

@ -11,7 +11,7 @@ try:
from tiramisu3 import * from tiramisu3 import *
except: except:
from tiramisu import * from tiramisu import *
option_3 = BoolOption(name="instanciated_module", doc="instanciated_module", default=False, properties=frozenset({"mandatory", "normal"})) option_3 = BoolOption(name="server_deployed", doc="server_deployed", default=False, properties=frozenset({"mandatory", "normal"}))
option_2 = StrOption(name="my_var", doc="my_var", default="no", properties=frozenset({"expert", "mandatory", Calculation(func.calc_value, Params(ParamValue('force_store_value'), kwargs={'condition': ParamOption(option_3, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('frozen'), kwargs={'condition': ParamOption(option_3, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)}))})) option_2 = StrOption(name="my_var", doc="my_var", default="no", properties=frozenset({"expert", "force_store_value", "mandatory", Calculation(func.calc_value, Params(ParamValue('frozen'), kwargs={'condition': ParamOption(option_3, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)}))}))
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3]) option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1])

View file

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.9"> <rougail version="0.9">
<variables> <variables>
<variable name="instanciated_module" type="boolean"/> <variable name="server_deployed" type="boolean"/>
<family name="général"> <family name="général">
<variable name="mode_conteneur_actif" type="string" description="No change" auto_save="True"> <variable name="mode_conteneur_actif" type="string" description="No change" auto_save="True">
<value>non</value> <value>non</value>

View file

@ -0,0 +1,10 @@
{
"rougail.server_deployed": {
"owner": "default",
"value": true
},
"rougail.general.mode_conteneur_actif": {
"owner": "forced",
"value": "non"
}
}

View file

@ -1,4 +1,4 @@
{ {
"rougail.instanciated_module": true, "rougail.server_deployed": true,
"rougail.general.mode_conteneur_actif": "non" "rougail.general.mode_conteneur_actif": "non"
} }

View file

@ -0,0 +1,10 @@
{
"rougail.server_deployed": {
"owner": "default",
"value": true
},
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
}
}

View file

@ -11,8 +11,8 @@ try:
from tiramisu3 import * from tiramisu3 import *
except: except:
from tiramisu import * from tiramisu import *
option_2 = BoolOption(name="instanciated_module", doc="instanciated_module", default=True, properties=frozenset({"mandatory", "normal"})) option_2 = BoolOption(name="server_deployed", doc="server_deployed", default=True, properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"basic", "mandatory", Calculation(func.calc_value, Params(ParamValue('force_store_value'), kwargs={'condition': ParamOption(option_2, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)}))})) option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"basic", "force_store_value", "mandatory"}))
option_3 = OptionDescription(name="general", doc="général", children=[option_4], properties=frozenset({"basic"})) option_3 = OptionDescription(name="general", doc="général", children=[option_4], properties=frozenset({"basic"}))
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3]) option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1])

View file

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.9"> <rougail version="0.9">
<variables> <variables>
<variable name="instanciated_module" type="boolean"/> <variable name="server_deployed" type="boolean"/>
<family name="général"> <family name="général">
<variable name="mode_conteneur_actif" type="string" description="No change" auto_save="True" mode="expert"> <variable name="mode_conteneur_actif" type="string" description="No change" auto_save="True" mode="expert">
<value>non</value> <value>non</value>

View file

@ -0,0 +1,10 @@
{
"rougail.server_deployed": {
"owner": "default",
"value": true
},
"rougail.general.mode_conteneur_actif": {
"owner": "forced",
"value": "non"
}
}

View file

@ -1,4 +1,4 @@
{ {
"rougail.instanciated_module": true, "rougail.server_deployed": true,
"rougail.general.mode_conteneur_actif": "non" "rougail.general.mode_conteneur_actif": "non"
} }

View file

@ -0,0 +1,10 @@
{
"rougail.server_deployed": {
"owner": "default",
"value": true
},
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
}
}

View file

@ -11,8 +11,8 @@ try:
from tiramisu3 import * from tiramisu3 import *
except: except:
from tiramisu import * from tiramisu import *
option_2 = BoolOption(name="instanciated_module", doc="instanciated_module", default=True, properties=frozenset({"mandatory", "normal"})) option_2 = BoolOption(name="server_deployed", doc="server_deployed", default=True, properties=frozenset({"mandatory", "normal"}))
option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"expert", "mandatory", Calculation(func.calc_value, Params(ParamValue('force_store_value'), kwargs={'condition': ParamOption(option_2, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)}))})) option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"expert", "force_store_value", "mandatory"}))
option_3 = OptionDescription(name="general", doc="général", children=[option_4], properties=frozenset({"expert"})) option_3 = OptionDescription(name="general", doc="général", children=[option_4], properties=frozenset({"expert"}))
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3]) option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1])

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,10 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"rougail.general.without_type": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,10 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"rougail.general.without_type": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,10 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"rougail.general.mode_conteneur_actif1": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,10 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"rougail.general.mode_conteneur_actif1": {
"owner": "default",
"value": "non"
}
}

View file

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.9"> <rougail version="0.9">
<variables> <variables>
<variable name="instanciated_module" type="boolean"> <variable name="server_deployed" type="boolean">
<value>no</value> <value>no</value>
</variable> </variable>
<variable name="my_variable" auto_freeze="True" hidden="True"> <variable name="my_variable" auto_freeze="True" hidden="True">

View file

@ -0,0 +1,10 @@
{
"rougail.server_deployed": {
"owner": "default",
"value": false
},
"rougail.my_variable": {
"owner": "forced",
"value": "yes"
}
}

View file

@ -1,4 +1,4 @@
{ {
"rougail.instanciated_module": false, "rougail.server_deployed": false,
"rougail.my_variable": "yes" "rougail.my_variable": "yes"
} }

View file

@ -0,0 +1,10 @@
{
"rougail.server_deployed": {
"owner": "default",
"value": false
},
"rougail.my_variable": {
"owner": "default",
"value": "yes"
}
}

View file

@ -11,7 +11,7 @@ try:
from tiramisu3 import * from tiramisu3 import *
except: except:
from tiramisu import * from tiramisu import *
option_2 = BoolOption(name="instanciated_module", doc="instanciated_module", default=False, properties=frozenset({"mandatory", "normal"})) option_2 = BoolOption(name="server_deployed", doc="server_deployed", default=False, properties=frozenset({"mandatory", "normal"}))
option_3 = StrOption(name="my_variable", doc="my_variable", default=Calculation(func.calc_val, Params((ParamValue("yes")))), properties=frozenset({"basic", "hidden", Calculation(func.calc_value, Params(ParamValue('force_store_value'), kwargs={'condition': ParamOption(option_2, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('frozen'), kwargs={'condition': ParamOption(option_2, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)}))})) option_3 = StrOption(name="my_variable", doc="my_variable", default=Calculation(func.calc_val, Params((ParamValue("yes")))), properties=frozenset({"basic", "force_store_value", "hidden", Calculation(func.calc_value, Params(ParamValue('frozen'), kwargs={'condition': ParamOption(option_2, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)}))}))
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3]) option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1])

View file

@ -0,0 +1,10 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"rougail.general.mode_conteneur_actif1": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,10 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"rougail.general.mode_conteneur_actif1": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,10 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": null
},
"rougail.general.mode_conteneur_actif1": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,10 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": null
},
"rougail.general.mode_conteneur_actif1": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.domain": {
"owner": "default",
"value": "my.domain.name"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.domain": {
"owner": "default",
"value": "my.domain.name"
}
}

View file

@ -0,0 +1,78 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.file.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.file.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test.files.file.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test.files.file.activate": {
"owner": "default",
"value": true
},
"services.test.files.file2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.file2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file2.name": {
"owner": "default",
"value": "/etc/file2"
},
"services.test.files.file2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test.files.file2.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,78 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.file.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.file.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test.files.file.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test.files.file.activate": {
"owner": "default",
"value": true
},
"services.test.files.file2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.file2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file2.name": {
"owner": "default",
"value": "/etc/file2"
},
"services.test.files.file2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test.files.file2.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,78 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.file.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.file.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test.files.file.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test.files.file.activate": {
"owner": "default",
"value": true
},
"services.test.files.file2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.file2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file2.name": {
"owner": "default",
"value": "/etc/file2"
},
"services.test.files.file2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test.files.file2.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,78 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.file.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.file.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test.files.file.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test.files.file.activate": {
"owner": "default",
"value": true
},
"services.test.files.file2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.file2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file2.name": {
"owner": "default",
"value": "/etc/file2"
},
"services.test.files.file2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test.files.file2.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,110 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.file.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.file.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test.files.file.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test.files.file.activate": {
"owner": "default",
"value": true
},
"services.test.files.file2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.file2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file2.name": {
"owner": "default",
"value": "/etc/file2"
},
"services.test.files.file2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test.files.file2.activate": {
"owner": "default",
"value": true
},
"services.test.files.incfile.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.incfile.group": {
"owner": "default",
"value": "root"
},
"services.test.files.incfile.included": {
"owner": "default",
"value": "content"
},
"services.test.files.incfile.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.incfile.name": {
"owner": "default",
"value": "/etc/dir/incfile"
},
"services.test.files.incfile.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.incfile.source": {
"owner": "default",
"value": "incfile"
},
"services.test.files.incfile.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,110 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.file.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.file.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test.files.file.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test.files.file.activate": {
"owner": "default",
"value": true
},
"services.test.files.file2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.file2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file2.name": {
"owner": "default",
"value": "/etc/file2"
},
"services.test.files.file2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test.files.file2.activate": {
"owner": "default",
"value": true
},
"services.test.files.incfile.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.incfile.group": {
"owner": "default",
"value": "root"
},
"services.test.files.incfile.included": {
"owner": "default",
"value": "content"
},
"services.test.files.incfile.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.incfile.name": {
"owner": "default",
"value": "/etc/dir/incfile"
},
"services.test.files.incfile.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.incfile.source": {
"owner": "default",
"value": "incfile"
},
"services.test.files.incfile.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,110 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.file.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.file.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test.files.file.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test.files.file.activate": {
"owner": "default",
"value": true
},
"services.test.files.file2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.file2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file2.name": {
"owner": "default",
"value": "/etc/file2"
},
"services.test.files.file2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test.files.file2.activate": {
"owner": "default",
"value": true
},
"services.test.files.incfile.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.incfile.group": {
"owner": "default",
"value": "root"
},
"services.test.files.incfile.included": {
"owner": "default",
"value": "name"
},
"services.test.files.incfile.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.incfile.name": {
"owner": "default",
"value": "/etc/dir/incfile"
},
"services.test.files.incfile.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.incfile.source": {
"owner": "default",
"value": "incfile"
},
"services.test.files.incfile.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,110 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.file.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.file.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test.files.file.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test.files.file.activate": {
"owner": "default",
"value": true
},
"services.test.files.file2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.file2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file2.name": {
"owner": "default",
"value": "/etc/file2"
},
"services.test.files.file2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test.files.file2.activate": {
"owner": "default",
"value": true
},
"services.test.files.incfile.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.incfile.group": {
"owner": "default",
"value": "root"
},
"services.test.files.incfile.included": {
"owner": "default",
"value": "name"
},
"services.test.files.incfile.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.incfile.name": {
"owner": "default",
"value": "/etc/dir/incfile"
},
"services.test.files.incfile.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.incfile.source": {
"owner": "default",
"value": "incfile"
},
"services.test.files.incfile.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,78 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.file.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.file.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test.files.file.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test.files.file.activate": {
"owner": "default",
"value": true
},
"services.test.files.file2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.file2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file2.name": {
"owner": "default",
"value": "/etc/file2"
},
"services.test.files.file2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test.files.file2.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,78 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.file.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.file.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file.name": {
"owner": "default",
"value": "/etc/file"
},
"services.test.files.file.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file.source": {
"owner": "default",
"value": "file"
},
"services.test.files.file.activate": {
"owner": "default",
"value": true
},
"services.test.files.file2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.file2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.file2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.file2.name": {
"owner": "default",
"value": "/etc/file2"
},
"services.test.files.file2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.file2.source": {
"owner": "default",
"value": "file2"
},
"services.test.files.file2.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,78 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.group": {
"owner": "default",
"value": "root"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.included": {
"owner": "default",
"value": "no"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.name": {
"owner": "default",
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.source": {
"owner": "default",
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": {
"owner": "default",
"value": true
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.name": {
"owner": "default",
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.source": {
"owner": "default",
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel2"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,78 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.engine": {
"owner": "default",
"value": "creole"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.group": {
"owner": "default",
"value": "root"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.included": {
"owner": "default",
"value": "no"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.name": {
"owner": "default",
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.source": {
"owner": "default",
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": {
"owner": "default",
"value": true
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.engine": {
"owner": "default",
"value": "jinja2"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.group": {
"owner": "default",
"value": "root"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.included": {
"owner": "default",
"value": "no"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.mode": {
"owner": "default",
"value": "0644"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.name": {
"owner": "default",
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.owner": {
"owner": "default",
"value": "root"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.source": {
"owner": "default",
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel2"
},
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": {
"owner": "default",
"value": true
},
"services.test.activate": {
"owner": "default",
"value": true
},
"services.test.manage": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,12 @@
{
"rougail.general.float": {
"owner": "default",
"value": 0.527
},
"rougail.general.float_multi": {
"owner": "default",
"value": [
0.527
]
}
}

View file

@ -0,0 +1,12 @@
{
"rougail.general.float": {
"owner": "default",
"value": 0.527
},
"rougail.general.float_multi": {
"owner": "default",
"value": [
0.527
]
}
}

View file

@ -0,0 +1,10 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": null
},
"rougail.general.mode_conteneur_actif1": {
"owner": "default",
"value": null
}
}

View file

@ -0,0 +1,10 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": null
},
"rougail.general.mode_conteneur_actif1": {
"owner": "default",
"value": null
}
}

View file

@ -0,0 +1,8 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": [
"non"
]
}
}

View file

@ -0,0 +1,8 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": [
"non"
]
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "quote\""
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "quote\""
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "quote'\""
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "quote'\""
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "quote\\\"\\'"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "quote\\\"\\'"
}
}

View file

@ -0,0 +1,8 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": [
"quote\""
]
}
}

View file

@ -0,0 +1,8 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": [
"quote\""
]
}
}

View file

@ -0,0 +1,8 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": [
"quote'\""
]
}
}

View file

@ -0,0 +1,8 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": [
"quote'\""
]
}
}

View file

@ -0,0 +1,8 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": [
"quote'"
]
}
}

View file

@ -0,0 +1,8 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": [
"quote'"
]
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "quote'"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "quote'"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.general": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.general": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.my_variable": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.my_variable": {
"owner": "default",
"value": true
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
}
}

View file

@ -0,0 +1,6 @@
{
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
}
}

View file

@ -7,7 +7,7 @@
<variable name="my_var2"> <variable name="my_var2">
<value>no</value> <value>no</value>
</variable> </variable>
<variable name="instanciated_module" type="boolean"> <variable name="server_deployed" type="boolean">
<value>False</value> <value>False</value>
</variable> </variable>
</variables> </variables>

View file

@ -0,0 +1,14 @@
{
"rougail.my_var1": {
"owner": "forced",
"value": "no"
},
"rougail.my_var2": {
"owner": "default",
"value": "no"
},
"rougail.server_deployed": {
"owner": "default",
"value": false
}
}

View file

@ -1,5 +1,5 @@
{ {
"rougail.my_var1": "no", "rougail.my_var1": "no",
"rougail.my_var2": "no", "rougail.my_var2": "no",
"rougail.instanciated_module": false "rougail.server_deployed": false
} }

View file

@ -0,0 +1,14 @@
{
"rougail.my_var1": {
"owner": "default",
"value": "no"
},
"rougail.my_var2": {
"owner": "default",
"value": "no"
},
"rougail.server_deployed": {
"owner": "default",
"value": false
}
}

View file

@ -12,7 +12,7 @@ try:
except: except:
from tiramisu import * from tiramisu import *
option_3 = StrOption(name="my_var2", doc="my_var2", default="no", properties=frozenset({"mandatory", "normal"})) option_3 = StrOption(name="my_var2", doc="my_var2", default="no", properties=frozenset({"mandatory", "normal"}))
option_4 = BoolOption(name="instanciated_module", doc="instanciated_module", default=False, properties=frozenset({"mandatory", "normal"})) option_4 = BoolOption(name="server_deployed", doc="server_deployed", default=False, properties=frozenset({"mandatory", "normal"}))
option_2 = StrOption(name="my_var1", doc="my_var1", default=Calculation(func.calc_val, Params((ParamOption(option_3)))), properties=frozenset({"basic", Calculation(func.calc_value, Params(ParamValue('force_store_value'), kwargs={'condition': ParamOption(option_4, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('frozen'), kwargs={'condition': ParamOption(option_4, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)}))})) option_2 = StrOption(name="my_var1", doc="my_var1", default=Calculation(func.calc_val, Params((ParamOption(option_3)))), properties=frozenset({"basic", "force_store_value", Calculation(func.calc_value, Params(ParamValue('frozen'), kwargs={'condition': ParamOption(option_4, todict=True), 'expected': ParamValue(True), 'reverse_condition': ParamValue(True)}))}))
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4]) option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2, option_3, option_4])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1])

View file

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.9"> <rougail version="0.9">
<variables> <variables>
<variable name="instanciated_module" type="boolean"/> <variable name="server_deployed" type="boolean"/>
<family name="general"> <family name="general">
<variable name="mode_conteneur_actif" type="string" description="No change" auto_save="True"> <variable name="mode_conteneur_actif" type="string" description="No change" auto_save="True">
<value>non</value> <value>non</value>

View file

@ -0,0 +1,14 @@
{
"rougail.server_deployed": {
"owner": "default",
"value": true
},
"rougail.general.mode_conteneur_actif": {
"owner": "forced",
"value": "non"
},
"rougail.general.mode_conteneur_actif1": {
"owner": "default",
"value": "non"
}
}

View file

@ -1,5 +1,5 @@
{ {
"rougail.instanciated_module": true, "rougail.server_deployed": true,
"rougail.general.mode_conteneur_actif": "non", "rougail.general.mode_conteneur_actif": "non",
"rougail.general.mode_conteneur_actif1": "non" "rougail.general.mode_conteneur_actif1": "non"
} }

View file

@ -0,0 +1,14 @@
{
"rougail.server_deployed": {
"owner": "default",
"value": true
},
"rougail.general.mode_conteneur_actif": {
"owner": "default",
"value": "non"
},
"rougail.general.mode_conteneur_actif1": {
"owner": "default",
"value": "non"
}
}

Some files were not shown because too many files have changed in this diff Show more