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

This python library makes managing the global configuration easy

 
Modules
       
os
string
sys
xml_common_lib

 
Classes
       
BaseDBConfigManager.BaseDBConfigManager(BaseConfigManager.BaseConfigManager)
GlobalDBConfigManager
BaseFSConfigManager.BaseFSConfigManager(BaseConfigManager.BaseConfigManager)
GlobalFSConfigManager

 
class GlobalDBConfigManager(BaseDBConfigManager.BaseDBConfigManager)
    This utility class manages the configuration storing and retrival from Db
 
 
Method resolution order:
GlobalDBConfigManager
BaseDBConfigManager.BaseDBConfigManager
BaseConfigManager.BaseConfigManager

Methods defined here:
__init__(self, name='global', version=None, qual=None)
Contructor to create a GlobalDBConfigManager
 
name - Name of the package

Methods inherited from BaseDBConfigManager.BaseDBConfigManager:
getConfigAttr(self, xpath, attr)
Get a single configuation attribute from the database
 
xpath - Xpath to the attribute
attr - Name of the attribute
returns a single configuration attribute value in the form of string
getConfigString(self)
Get the configuration from database
 
return configuration in the form of string else None
printConfigDetails(self)
storeConfigString(self, config_str)
Store the configuration in the form of xml string to the database
 
config_str - Configuration in the form of xml string

Methods inherited from BaseConfigManager.BaseConfigManager:
getConfigPyXmlObject(self)
Get the configuration in the form of PyXmlObject
 
return configuration in the form of PyXmlObject
getDebugMode(self)
getDefaultMode(self)
getGlobalConfigDocName(self)
getGlobalContext(self)
getGlobalPath(self)
getHostDependentPrdList(self)
getPrdCollection(self)
getPrdConfigDocName(self)
getPrdMachine(self)
getPrdPath(self)
getPrdQualifiers(self)
getPrdReleaseDir(self)
getPrdVersion(self)
getProductsCollection(self)
getProductsHost(self)
getSiteConfigDocName(self)
getSiteContext(self)
getSitePath(self)
printDebug(self, str)
storeConfigFile(self, config_file)
Store the configuration from the file to default location
 
config_file - Name of the configuration file 
returns 0 if successful, 1 if error

Data and other attributes inherited from BaseConfigManager.BaseConfigManager:
ConfigManagerError = <class BaseConfigManager.ConfigManagerError>

 
class GlobalFSConfigManager(BaseFSConfigManager.BaseFSConfigManager)
    This utility class manages the configuration storing and retrival from Db
 
 
Method resolution order:
GlobalFSConfigManager
BaseFSConfigManager.BaseFSConfigManager
BaseConfigManager.BaseConfigManager

Methods defined here:
__init__(self, name='global', version=None, qual=None)
Contructor to create a GlobalFSConfigManager
 
name - Name of the package

Methods inherited from BaseFSConfigManager.BaseFSConfigManager:
getConfigAttr(self, xpath, attr)
Get a single configuation attribute from the FS
 
xpath  - Xpath to the attribute
attr   - Name of the attribute
returns a single configuration attribute value in the form of string
getConfigString(self)
Get the configuration from FS
 
returns configuration in the form of string
getGlobalConfigDocName(self)
getGlobalPath(self)
getPrdConfigDocName(self)
getPrdPath(self)
getSiteConfigDocName(self)
getSitePath(self)
printConfigDetails(self)
storeConfigString(self, config_str)
Store the configuration in the form of xml string to the FS
 
config_str - Configuration in the form of xml string
returns 0 if successful, 1 if error occurs

Methods inherited from BaseConfigManager.BaseConfigManager:
getConfigPyXmlObject(self)
Get the configuration in the form of PyXmlObject
 
return configuration in the form of PyXmlObject
getDebugMode(self)
getDefaultMode(self)
getGlobalContext(self)
getHostDependentPrdList(self)
getPrdCollection(self)
getPrdMachine(self)
getPrdQualifiers(self)
getPrdReleaseDir(self)
getPrdVersion(self)
getProductsCollection(self)
getProductsHost(self)
getSiteContext(self)
printDebug(self, str)
storeConfigFile(self, config_file)
Store the configuration from the file to default location
 
config_file - Name of the configuration file 
returns 0 if successful, 1 if error

Data and other attributes inherited from BaseConfigManager.BaseConfigManager:
ConfigManagerError = <class BaseConfigManager.ConfigManagerError>

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

 
Author
        Parag Mhashilkar <parag@fnal.gov>