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

@ -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