Package logilab :: Package common :: Module configuration :: Class ConfigurationMixIn
[frames] | no frames]

Class ConfigurationMixIn

source code

          object --+    
                   |    
 OptionsManagerMixIn --+
                       |
          object --+   |
                   |   |
OptionsProviderMixIn --+
                       |
                      ConfigurationMixIn

basic mixin for simple configurations which don't need the manager / providers model
Instance Methods
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
register_options(self, options)
add some options to the configuration
source code
 
load_defaults(self)
initialize the provider using default values
source code
 
__iter__(self) source code
 
__getitem__(self, key) source code
 
__setitem__(self, key, value) source code
 
get(self, key, default=None) source code

Inherited from OptionsManagerMixIn: add_help_section, add_optik_option, add_option_group, cb_set_provider_option, generate_config, generate_manpage, global_set_option, help, input_config, load_command_line_configuration, load_config_file, load_configuration, load_file_configuration, load_provider_defaults, optik_option, read_config_file, register_options_provider, reset_parsers

Inherited from OptionsProviderMixIn: all_options, get_option_def, input_option, option_attrname, option_default, option_value, options_and_values, options_by_section, set_option

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from OptionsProviderMixIn: level, name, option_name, options, priority

Properties

Inherited from object: __class__

Method Details

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

load_defaults(self)

source code 
initialize the provider using default values
Overrides: OptionsProviderMixIn.load_defaults
(inherited documentation)