BaseFSConfigManager (version 1.0, May 02 2003)
index
/home/parag/workspace/samgrid/V7/JIMSUITE/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
 
  Methods defined here:
__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
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>

 
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
        __author__ = 'Parag Mhashilkar <parag@fnal.gov>'
__date__ = 'May 02 2003'
__version__ = '1.0'

 
Author
        Parag Mhashilkar <parag@fnal.gov>