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

Class ConfigDataDB

source code

ConfigData --+
             |
            ConfigDataDB

Class that holds config data for a particular user/workplace pair

Instance Methods
 
__init__(self, aUser=None, aWorkplace='xxxDEFAULTxxx')
Init DB connection
source code
 
GetConfigData(self, aParameterName=None)
Gets Config Data for a particular parameter.
source code
 
SetConfigData(self, aParameterName, aValue)
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 backend.
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, aUser=None, aWorkplace='xxxDEFAULTxxx')
(Constructor)

source code 

Init DB connection

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, aValue)

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. Note: You will have to re-read the cache (call GetAllNames()) in order to change this parameter afterwards.

Overrides: ConfigData.AddConfigParam

getAllNames(self)

source code 

fetch names and parameter data from backend. Returns list of parameter names where cookie and real name are concatenated. Refreshes the parameter cache, too.

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