Gnumed.pycommon.gmConfigCommon.ConfigDataFile

Package Gnumed :: Package pycommon :: Module gmConfigCommon :: Class ConfigDataFile |
[frames] | no frames]

# Class ConfigDataFile

source code

    ConfigData --+
                 |
                ConfigDataFile

Class that holds config data for a particular config file

Instance Methods
__init__(self, aFilename=None) Init config file | source code
GetFullPath(self) returns the absolute path to the config file in use | source code
GetConfigData(self, aParameterName=None) Gets Config Data for a particular parameter. | source code
SetConfigData(self, aParameterName=None, aValue=None) Sets Config Data for a particular parameter. | source code
AddConfigParam(self, aParameterName, aType=None, aValue=None, aDescription=None) Adds a new config parameter. | source code
getAllNames(self) fetch names and parameter data from config file. | source code
getRawName(self, aParameterName=None) Returns the parameter name without possible cookie part(s). | source code
Inherited from `ConfigData`: `GetAllNames`, `getParamDescription`, `getParamType`

Method Details

### __init__(self, aFilename=None) (Constructor) | source code
Init config file Overrides: ConfigData.__init__

### GetConfigData(self, aParameterName=None) | source code
Gets Config Data for a particular parameter. Returns parameter value. Overrides: ConfigData.GetConfigData

### SetConfigData(self, aParameterName=None, aValue=None) | source code
Sets Config Data for a particular parameter. Overrides: ConfigData.SetConfigData

### AddConfigParam(self, aParameterName, aType=None, aValue=None, aDescription=None) | source code
Adds a new config parameter. Overrides: ConfigData.AddConfigParam

### getAllNames(self) | source code
fetch names and parameter data from config file. Returns list of parameter names where group and option name are concatenated.

### getRawName(self, aParameterName=None) | source code
Returns the parameter name without possible cookie part(s). Needed to indentify matching config definition entry. Overrides: ConfigData.getRawName