From 783e982c9b25c529ddddafc6c6cb5652f0c32cb3 Mon Sep 17 00:00:00 2001 From: Garette Emmanuel Date: Wed, 13 Mar 2013 11:29:29 +0100 Subject: [PATCH] informations attribute finally works --- tiramisu/option.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tiramisu/option.py b/tiramisu/option.py index f46fd93..0cc453c 100644 --- a/tiramisu/option.py +++ b/tiramisu/option.py @@ -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