JimConfigManager (version 1.0, May 15 2003)
index
/home/parag/workspace/samgrid/V7/JIMSUITE/jim_config/src/python/JimConfigManager/JimConfigManager.py

This python library makes managing the configuration easy

 
Modules
       
BaseConfigManager
GlobalConfigManager
ProductConfigManager
SiteConfigManager
os
string
sys
traceback

 
Classes
       
JimConfigManager

 
class JimConfigManager
     Methods defined here:
__init__(self, name=None, version=None, qualifiers=None)
Contructor to create a JimConfigManager
 
name - Name of the package.
       Can be None for accessing site or global configuration
version - Version of the package.
qualifiers - Qualifiers for the package
 
If version and qualifiers are None, they are assigned to
UPS_PROD_VERSION and UPS_PROD_QUALIFIERS environment variables.
getConfigAttr(self, xpath, attr)
Get a single configuation attribute
 
xpath - Xpath to the attribute
attr - Name of the attribute
return a single configuration in the form of string
getConfigPyXmlObject(self)
Get the configuration in the form of PyXmlObject
 
return configuration in the form of PyXmlObject
getConfigString(self)
Get the configuration
 
return configuration in the form of string
getDebugMode(self)
getGlobalConfigAttr(self, xpath, attr)
Get a global configuation attribute
 
xpath - Xpath to the attribute
attr - Name of the attribute
return a global configuration in the form of string
getGlobalConfigPyXmlObject(self)
Get the global configuration in the form of PyXmlObject
 
return global configuration in the form of PyXmlObject
getGlobalConfigString(self)
Get the global configuration in the form of string
 
return global configuration in the form of string
getSiteConfigAttr(self, xpath, attr)
Get a global configuation attribute
 
xpath - Xpath to the attribute
attr - Name of the attribute
return a site configuration in the form of string
getSiteConfigPyXmlObject(self)
Get the site configuration in the form of PyXmlObject
 
return site configuration in the form of PyXmlObject
getSiteConfigString(self)
Get the site configuration in the form of string
 
return site configuration in the form of string
getSiteConfiguration(self)
Get the site configuration in the form of string
 
return site configuration in the form of string
printDBLookupErrorMessage(self)
printDBStorageErrorMessage(self)
printFSLookupErrorMessage(self)
setMode(self, mode)
Override the default mode 'DBFS'.In this mode it access first database
and in case of errors retrieving configuation it accesses file system
To use only file system use 'FS'.
 
mode - Mode to access the information
storeConfigFile(self, config_file)
Store the configuration from the file
 
config_file - Name of the configuration file
storeConfigString(self, config_str)
Store the configuration in the form of xml string
 
config_str - Configuration in the form of xml string
storeGlobalConfigFile(self, config_file)
Store the global configuration from the file
 
config_file - Name of the configuration file
storeGlobalConfigString(self, config_str)
Store the global configuration in the form of xml string
 
config_str - Configuration in the form of xml string
storeSiteConfigFile(self, config_file)
Store the site configuration from the file
 
config_file - Name of the configuration file
storeSiteConfigString(self, config_str)
Store the site configuration in the form of xml string 
 
config_str - Configuration in the form of xml string

 
Data
        __author__ = 'Parag Mhashilkar <parag@fnal.gov>'
__date__ = 'May 15 2003'
__version__ = '1.0'

 
Author
        Parag Mhashilkar <parag@fnal.gov>