3 __configurables_module_fullname__ = __name__ +
'.Configurables' 4 __ignore_missing_configurables__ =
False 18 self.
__name__ = __configurables_module_fullname__
29 elif name ==
"__path__":
30 raise AttributeError(
"'module' object has no attribute '__path__'")
31 elif name
in cfgDb.keys():
32 retval = confDbGetConfigurable(name)
34 retval = aliases[name]
37 logging.getLogger(__configurables_module_fullname__).warning(
'Configurable class %s not in database', name)
41 raise AttributeError(
"module '%s' does not have attribute '%s'" % (__configurables_module_fullname__, name))
45 Configurables = _ConfigurablesModule()
46 sys.modules[__configurables_module_fullname__] = Configurables
Small class that allows to access all the configurables as attributes of the instance.
def __getattr__(self, name)
def __init__(self)
Initializes the instance.
ignoreMissingConfigurables
If set to true, does not raise an AttributeError if the configurable is not found.