class documentation
class ConfigurationMixIn(OptionsManagerMixIn, OptionsProviderMixIn): (source)
Basic mixin for simple configurations which don't need the manager / providers model.
Method | __init__ |
Undocumented |
Instance Variable | option |
Undocumented |
Inherited from OptionsManagerMixIn
:
Method | add |
Undocumented |
Method | add |
Undocumented |
Method | cb |
Optik callback for option setting. |
Method | generate |
Write a configuration file according to the current configuration into the given stream or stdout. |
Method | global |
Set option on the correct option provider. |
Method | help |
Return the usage string for available options. |
Method | load |
Override configuration according to command line parameters. |
Method | load |
Dispatch values previously read from a configuration file to each option's provider. |
Method | load |
Override configuration according to given parameters. |
Method | load |
Undocumented |
Method | load |
Initialize configuration using default values. |
Method | optik |
Get our personal option definition and return a suitable form for use with optik/optparse. |
Method | read |
Read the configuration file but do not load it (i.e. dispatching values to each option's provider). |
Method | register |
Register an options provider. |
Method | reset |
Undocumented |
Instance Variable | cfgfile |
Undocumented |
Instance Variable | cmdline |
Undocumented |
Instance Variable | options |
Undocumented |
Method | _parse |
Parse and handle errors of a toml configuration file. |
Instance Variable | _all |
Undocumented |
Instance Variable | _maxlevel |
Undocumented |
Instance Variable | _mygroups |
Undocumented |
Instance Variable | _nocallback |
Undocumented |
Instance Variable | _optik |
Undocumented |
Instance Variable | _short |
Undocumented |
Inherited from OptionsProviderMixIn
(via OptionsManagerMixIn
):
Method | get |
Return the dictionary defining an option given its name. |
Method | load |
Initialize the provider using default values. |
Method | option |
Get the config attribute corresponding to opt. |
Method | option |
Get the current value for the given option. |
Method | options |
Undocumented |
Method | options |
Return an iterator on options grouped by section. |
Method | set |
Method called to set an option (registered in the options list). |
Class Variable | level |
Undocumented |
Class Variable | name |
Undocumented |
Class Variable | options |
Undocumented |
Instance Variable | config |
Undocumented |