| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DybPython::OldStyleConfig Namespace Reference


Functions

def _compatLookup
def Algorithm
def Service
def AlgTool

Variables

string __version__ = '5.0.0'
string __author__ = 'Wim Lavrijsen (WLavrijsen@lbl.gov)'
list __all__ = [ 'Algorithm', 'Service', 'AlgTool' ]
tuple log = logging.getLogger( 'OldStyleConfig' )
dictionary _algConfigurables = {}
dictionary _svcConfigurables = {}
dictionary _atlConfigurables = {}

Function Documentation

def DybPython::OldStyleConfig::_compatLookup (   name,
  klass 
) [private]

Definition at line 20 of file OldStyleConfig.py.

00020                                 :
00021    parts = string.split( name, '/' )
00022    if (len(parts) > 2) :
00023       msg = 'invalid argument name = "%s", must be of the form "type[/name]"' % name
00024       log.error( msg )
00025       raise RuntimeError( msg )
00026 
00027    import ConfigurableDb
00028    cls = ConfigurableDb.getConfigurable( parts[0] )
00029    if not cls or not issubclass( cls, klass ):
00030       msg = 'unable to locate configurable for type "%s"' % parts[0]
00031       log.error( msg )
00032       raise TypeError( msg )
00033 
00034    if len(parts) == 1:
00035       return cls()
00036    else:
00037       return cls(parts[1])
00038 
_algConfigurables = {}

def DybPython::OldStyleConfig::Algorithm (   name  ) 

Definition at line 40 of file OldStyleConfig.py.

00040                      :
00041    import Configurable
00042    result = _compatLookup( name, Configurable.ConfigurableAlgorithm )
00043    if result:
00044       global _algConfigurables
00045       _algConfigurables[ name ] = result
00046    return result
00047 
00048 Algorithm.configurables = _algConfigurables
00049 
00050 
_svcConfigurables = {}

def DybPython::OldStyleConfig::Service (   name  ) 

Definition at line 52 of file OldStyleConfig.py.

00052                    :
00053    import Configurable
00054    result = _compatLookup( name, Configurable.ConfigurableService )
00055    if result:
00056       global _svcConfigurables
00057       _svcConfigurables[ name ] = result
00058    return result
00059 
00060 Service.configurables = _svcConfigurables
00061 
00062 
_atlConfigurables = {}

def DybPython::OldStyleConfig::AlgTool (   name  ) 

Definition at line 64 of file OldStyleConfig.py.

00064                    :
00065    import Configurable
00066    result = _compatLookup( name, Configurable.ConfigurableAlgTool )
00067    if result:
00068       global _atlConfigurables
00069       _atlConfigurables[ name ] = result
00070    return result
00071 
00072 AlgTool.configurabls = _atlConfigurables
AlgTool.configurabls = _atlConfigurables


Variable Documentation

string DybPython::OldStyleConfig::__version__ = '5.0.0' [static]

Definition at line 10 of file OldStyleConfig.py.

string DybPython::OldStyleConfig::__author__ = 'Wim Lavrijsen (WLavrijsen@lbl.gov)' [static]

Definition at line 11 of file OldStyleConfig.py.

list DybPython::OldStyleConfig::__all__ = [ 'Algorithm', 'Service', 'AlgTool' ] [static]

Definition at line 13 of file OldStyleConfig.py.

tuple DybPython::OldStyleConfig::log = logging.getLogger( 'OldStyleConfig' ) [static]

Definition at line 17 of file OldStyleConfig.py.

dictionary DybPython::OldStyleConfig::_algConfigurables = {} [static]

Definition at line 39 of file OldStyleConfig.py.

dictionary DybPython::OldStyleConfig::_svcConfigurables = {} [static]

Definition at line 51 of file OldStyleConfig.py.

dictionary DybPython::OldStyleConfig::_atlConfigurables = {} [static]

Definition at line 63 of file OldStyleConfig.py.

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:13:02 2011 for DybPython by doxygen 1.4.7