BaseFSConfigManager (version 1.0, May 02 2003)
index
/home/garzogli/tmp/jim_config/src/python/JimConfigManager/BaseFSConfigManager.py

This python script makes managing the configuration in the FS easy

 
Modules
            
os
string
sys
traceback
xml_common_lib

 
Classes
            
BaseConfigManager.BaseConfigManager
BaseFSConfigManager

 
class BaseFSConfigManager(BaseConfigManager.BaseConfigManager)
      This utility class manages the configuration access to Db
 
  
__init__(self, name)
Contructor to create a BaseFSConfigManager
 
name    - Name of 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 attribute value in the form of string
getConfigPyXmlObject(self) from BaseConfigManager.BaseConfigManager
getConfigString(self)
Get the configuration from FS
 
returns configuration in the form of string
getDebugMode(self) from BaseConfigManager.BaseConfigManager
getDefaultMode(self) from BaseConfigManager.BaseConfigManager
getGlobalConfigDocName(self)
getGlobalContext(self) from BaseConfigManager.BaseConfigManager
getGlobalPath(self)
getHostDependentPrdList(self) from BaseConfigManager.BaseConfigManager
getPrdCollection(self) from BaseConfigManager.BaseConfigManager
getPrdConfigDocName(self)
getPrdMachine(self) from BaseConfigManager.BaseConfigManager
getPrdPath(self)
getPrdQualifiers(self) from BaseConfigManager.BaseConfigManager
getPrdReleaseDir(self) from BaseConfigManager.BaseConfigManager
getPrdVersion(self) from BaseConfigManager.BaseConfigManager
getProductsCollection(self) from BaseConfigManager.BaseConfigManager
getProductsHost(self) from BaseConfigManager.BaseConfigManager
getSiteConfigDocName(self)
getSiteContext(self) from BaseConfigManager.BaseConfigManager
getSitePath(self)
printConfigDetails(self)
printDebug(self, str) from BaseConfigManager.BaseConfigManager
storeConfigFile(self, config_file) from BaseConfigManager.BaseConfigManager
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

 
Functions
            
getChild(dom, element)
xpath2opath(xpath, attr)
Convert an xpath string to an 'path' into a PY XML object
xpath  - xpath to the attibute
returns the value of the attribute

 
Data
             _JIM_CONFIG_FS_CONFIG_FILE = None
__author__ = 'Parag Mhashilkar <parag@fnal.gov>'
__date__ = 'May 02 2003'
__file__ = './BaseFSConfigManager.py'
__name__ = 'BaseFSConfigManager'
__version__ = '1.0'

 
Author
             Parag Mhashilkar <parag@fnal.gov>