| Home | Trees | Index | Help |
|
|---|
| Package lyntin :: Module config :: Class ConfigBase |
|
BoolConfig,
CharConfig,
IntConfig,
StringConfig| Method Summary | |
|---|---|
Sets the name and original value. | |
| varies |
Checks the value to verify that it's a valid value for this config data item. |
| varies |
Retrieves the value in question. |
| string |
Gets the description of the config item. |
| varies |
Sets the value. |
| string |
Retrieves a textual representation of the value and the type of the config item. |
| Method Details |
|---|
__init__(self,
name,
originalvalue,
persist,
description)
Sets the name and original value. Override this if you need
additional pieces of information in your ConfigDataBase subclass.
|
check(self, value)Checks the value to verify that it's a valid value for this config data item. Override this so that it checks the incoming value and if it's not a valid type, it kicks up a TypeError. If it's not a valid value (different than not being a valid type) it kicks up a ValueError. If everything is ok, it should return the converted argument.
|
get(self)Retrieves the value in question.
|
getDescription(self)Gets the description of the config item.
|
set(self, newvalue)Sets the value. This should check the value first, and then set it if it's ok. Override this if you need to provide additional functionality.
|
toString(self)Retrieves a textual representation of the value and the type of the config item.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 9 09:17:41 2004 | http://epydoc.sf.net |