BaseDBConfigManager (version 1.0, May 05 2003)
index
/home/garzogli/tmp/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
 
  
__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
getConfigPyXmlObject(self) from BaseConfigManager.BaseConfigManager
getConfigString(self)
Get the configuration from database
 
return configuration in the form of string else None
getDebugMode(self) from BaseConfigManager.BaseConfigManager
getDefaultMode(self) from BaseConfigManager.BaseConfigManager
getGlobalConfigDocName(self) from BaseConfigManager.BaseConfigManager
getGlobalContext(self) from BaseConfigManager.BaseConfigManager
getGlobalPath(self) from BaseConfigManager.BaseConfigManager
getHostDependentPrdList(self) from BaseConfigManager.BaseConfigManager
getPrdCollection(self) from BaseConfigManager.BaseConfigManager
getPrdConfigDocName(self) from BaseConfigManager.BaseConfigManager
getPrdMachine(self) from BaseConfigManager.BaseConfigManager
getPrdPath(self) from BaseConfigManager.BaseConfigManager
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) from BaseConfigManager.BaseConfigManager
getSiteContext(self) from BaseConfigManager.BaseConfigManager
getSitePath(self) from BaseConfigManager.BaseConfigManager
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 database
 
config_str - Configuration in the form of xml string

 
Functions
            
create_collections(db, collections)

 
Data
             __author__ = 'Parag Mhashilkar <parag@fnal.gov>'
__date__ = 'May 05 2003'
__file__ = './BaseDBConfigManager.pyc'
__name__ = 'BaseDBConfigManager'
__version__ = '1.0'

 
Author
             Parag Mhashilkar <parag@fnal.gov>