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

This python library makes managing the product configuration easy

 
Modules
       
os
re
string
sys
xml_common_lib

 
Classes
       
BaseDBConfigManager.BaseDBConfigManager(BaseConfigManager.BaseConfigManager)
ProductDBConfigManager
BaseFSConfigManager.BaseFSConfigManager(BaseConfigManager.BaseConfigManager)
ProductFSConfigManager

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

Methods defined here:
__init__(self, name, version=None, qual=None, machine=None)
Contructor to create a ProductDBConfigManager
 
name - Name of the package
myContext(self)
printConfigDetails(self)

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
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 ProductFSConfigManager(BaseFSConfigManager.BaseFSConfigManager)
    This utility class manages the configuration storing and retrival from Db
 
 
Method resolution order:
ProductFSConfigManager
BaseFSConfigManager.BaseFSConfigManager
BaseConfigManager.BaseConfigManager

Methods defined here:
__init__(self, name, version=None, qual=None, machine=None)
Contructor to create a ProductFSConfigManager
 
name - Name of the package
myConfigDocName(self)
printConfigDetails(self)

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)
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 05 2003'
__version__ = '1.0'

 
Author
        Parag Mhashilkar <parag@fnal.gov>