Package ganeti :: Module ovf :: Class ConfigParserWithDefaults
[hide private]
[frames] | no frames]

Class ConfigParserWithDefaults

source code


This is just a wrapper on SafeConfigParser, that uses default values

Instance Methods [hide private]
 
get(self, section, options, raw=None, vars=None)
Get an option value for a given section.
source code
 
getint(self, section, options) source code

Inherited from ConfigParser.SafeConfigParser: set

Inherited from ConfigParser.SafeConfigParser (private): _interpolate, _interpolate_some

Inherited from ConfigParser.ConfigParser: items

Inherited from ConfigParser.ConfigParser (private): _interpolation_replace

Inherited from ConfigParser.RawConfigParser: __init__, add_section, defaults, getboolean, getfloat, has_option, has_section, options, optionxform, read, readfp, remove_option, remove_section, sections, write

Inherited from ConfigParser.RawConfigParser (private): _get, _read

Class Variables [hide private]

Inherited from ConfigParser.SafeConfigParser (private): _interpvar_re

Inherited from ConfigParser.ConfigParser (private): _KEYCRE

Inherited from ConfigParser.RawConfigParser: OPTCRE, OPTCRE_NV, SECTCRE

Inherited from ConfigParser.RawConfigParser (private): _boolean_states

Method Details [hide private]

get(self, section, options, raw=None, vars=None)

source code 

Get an option value for a given section.

If `vars' is provided, it must be a dictionary. The option is looked up in `vars' (if provided), `section', and in `defaults' in that order.

All % interpolations are expanded in the return values, unless the optional argument `raw' is true. Values for interpolation keys are looked up in the same manner as the option.

The section DEFAULT is special.

Overrides: ConfigParser.RawConfigParser.get

getint(self, section, options)

source code 
Overrides: ConfigParser.RawConfigParser.getint