This class handles the EDNA configuration XML files. The structure of
the XML is described in the XSDataCommon data model.
If environment variable strings like "$XXX" or
"${XXX}" is present in the configuration file, the strings are
replaced with the corresponding environment variable content. For
example, if "${CCP4} is present in the XML string, the string
"${CCP4}" is replaced by the environment variable $CCP4
content.
|
__init__(self,
_strFileName=None)
"Set up semaphore for thread safeness and dictionary for config
files |
source code
|
|
|
addConfigurationFile(self,
_strFileName,
_bReplace=True)
Loads an XML/JSON config file into the dictionary if not already
loaded |
source code
|
|
|
|
|
get(self,
_strPluginName,
default=None)
Returns the configuration for a given plugin as a dictionary. |
source code
|
|
|
|
|
__getitem__(self,
_strPluginName)
edConfig["myPlugin"] -> {} |
source code
|
|
|
|
|
|
|
getPluginListSize(self)
Returns the number of plugins configured |
source code
|
|
|
getXSConfigurationItem(self,
_strPluginName)
Method offering compatibility with XML structure: deprecated !!! |
source code
|
|
|
setXSConfigurationItem(self,
_xsPluginItem)
Compatibility with XML structure: deprecated |
source code
|
|
|
getStringValue(self,
_strPluginName,
_strConfigurationName)
Get the configuration for one plugin and one config parameter, as a
string |
source code
|
|
Inherited from EDLogging.EDLogging :
ASSERT ,
DEBUG ,
ERROR ,
WARNING ,
error ,
isVerboseDebug ,
log ,
screen ,
setAllLogLevels ,
setLogFileName ,
setLogFileOff ,
setLogLevel ,
setTestOff ,
setTestOn ,
setVerboseDebugOff ,
setVerboseDebugOn ,
setVerboseOff ,
setVerboseOn ,
unitTest ,
warning ,
writeErrorTrace
Inherited from EDObject.EDObject :
getClassName ,
getId ,
getRunTime ,
getSemaphoreValue ,
getTimeEnd ,
getTimeInit ,
locked ,
setTimeEnd ,
setTimeInit ,
synchronizeOff ,
synchronizeOn
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|