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

This python script makes managing the configuration in the database easy

 
Modules
       
os
re
string
sys
traceback
xml_common_lib
xmldb_client

 
Classes
       
BaseConfigManager.BaseConfigManager
BaseDBConfigManager

 
class BaseDBConfigManager(BaseConfigManager.BaseConfigManager)
    This utility class manages the access to Db
 
  Methods defined here:
__init__(self, name)
Contructor to create a BaseDBConfigManager
 
name    - Name of the package
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>

 
Functions
       
create_collections(db, collections)

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

 
Author
        Parag Mhashilkar <parag@fnal.gov>