informations attribute finally works

This commit is contained in:
Emmanuel Garette 2013-03-13 11:29:29 +01:00
parent e1357fd5c5
commit 783e982c9b
1 changed files with 3 additions and 2 deletions

View File

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