informations attribute finally works
This commit is contained in:
parent
e1357fd5c5
commit
783e982c9b
|
@ -29,7 +29,7 @@ from tiramisu.error import (ConfigError, ConflictConfigError, NotFoundError,
|
||||||
from tiramisu.autolib import carry_out_calculation
|
from tiramisu.autolib import carry_out_calculation
|
||||||
from tiramisu.setting import groups, owners
|
from tiramisu.setting import groups, owners
|
||||||
|
|
||||||
requires_actions = [('hide', 'show'), ('enable', 'disable'),
|
requires_actions = [('hide', 'show'), ('enable', 'disable'),
|
||||||
('freeze', 'unfreeze')]
|
('freeze', 'unfreeze')]
|
||||||
|
|
||||||
available_actions = []
|
available_actions = []
|
||||||
|
@ -54,7 +54,6 @@ def valid_name(name):
|
||||||
#
|
#
|
||||||
|
|
||||||
class BaseInformation:
|
class BaseInformation:
|
||||||
informations = {}
|
|
||||||
|
|
||||||
def set_information(self, key, value):
|
def set_information(self, key, value):
|
||||||
"""updates the information's attribute
|
"""updates the information's attribute
|
||||||
|
@ -152,6 +151,7 @@ class Option(BaseType, BaseInformation):
|
||||||
"for option {1}".format(str(default), name))
|
"for option {1}".format(str(default), name))
|
||||||
self.default = default
|
self.default = default
|
||||||
self.properties = [] # 'hidden', 'disabled'...
|
self.properties = [] # 'hidden', 'disabled'...
|
||||||
|
self.informations = {}
|
||||||
|
|
||||||
def validate(self, value, validate=True):
|
def validate(self, value, validate=True):
|
||||||
"""
|
"""
|
||||||
|
@ -417,6 +417,7 @@ class OptionDescription(BaseType, BaseInformation):
|
||||||
self._requires = requires
|
self._requires = requires
|
||||||
self._build()
|
self._build()
|
||||||
self.properties = [] # 'hidden', 'disabled'...
|
self.properties = [] # 'hidden', 'disabled'...
|
||||||
|
self.informations = {}
|
||||||
|
|
||||||
def getdoc(self):
|
def getdoc(self):
|
||||||
return self.doc
|
return self.doc
|
||||||
|
|
Loading…
Reference in New Issue