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

This python script makes managing the configuration easy

 
Modules
       
os
re
string
sys
time
traceback

 
Classes
       
BaseConfigManager

 
class BaseConfigManager
     Methods defined here:
__init__(self, name)
Contructor to create a BaseConfigManager
 
name - Name of the package
version - Version of the package.
qualifiers - Qualifiers for the package
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 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)
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)
printConfigDetails(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
storeConfigString(self, config_str)
Store the configuration in the form of xml string to default location
 
config_str - Configuration in the form of xml string

Data and other attributes defined here:
ConfigManagerError = <class BaseConfigManager.ConfigManagerError>

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

 
Author
        Parag Mhashilkar <parag@fnal.gov>