|
Gaudi Framework, version v21r9 |
| Home | Generated: 3 May 2010 |
Public Member Functions | |
| def | __init__ |
| Initializes the instance. | |
| def | __getattr__ |
Public Attributes | |
| ignoreMissingConfigurables | |
| If set to true, does not raise an AttributeError if the configurable is not found. | |
Used as module to allow code like
from Gaudi.Configuration import Configurables Configurables.MyConf()
Definition at line 13 of file __init__.py.
| def Gaudi::_ConfigurablesModule::__init__ | ( | self | ) |
Initializes the instance.
Definition at line 15 of file __init__.py.
00015 : 00016 ## If set to true, does not raise an AttributeError if the configurable is not found. 00017 self.ignoreMissingConfigurables = False 00018 def __getattr__(self, name):
| def Gaudi::_ConfigurablesModule::__getattr__ | ( | self, | ||
| name | ||||
| ) |
Definition at line 19 of file __init__.py.
00019 : 00020 # trigger the load of the configurables database 00021 from Gaudi.Configuration import confDbGetConfigurable, cfgDb 00022 # return value 00023 retval = None 00024 # handle the special cases (needed for modules): __all__, __path__ 00025 if name == "__all__": 00026 retval = cfgDb.keys() 00027 elif name == "__path__": 00028 retval == None 00029 elif name in cfgDb.keys(): # ignore private names 00030 retval = confDbGetConfigurable(name) 00031 elif self.ignoreMissingConfigurables: 00032 import logging 00033 logging.getLogger(__configurables_module_fullname__).warning('Configurable class %s not in database', name) 00034 else: 00035 # We raise an AttributeError exception if the configurable could not be found 00036 # to respect the Python semantic. 00037 raise AttributeError("module '%s' does not have attribute '%s'" % (__configurables_module_fullname__, name)) 00038 return retval 00039 00040 # install the facade module instance as a module Configurables = _ConfigurablesModule()
| Gaudi::_ConfigurablesModule::ignoreMissingConfigurables |
If set to true, does not raise an AttributeError if the configurable is not found.
Definition at line 17 of file __init__.py.