Section of the configuration.
All getter methods take the field name and the default value, which is
returned when the field is not set. If the configuration field is set but
cannot be converted into a value of requested type, execution aborts with
an error message.
|
__init__(self,
name)
Retrieve a section of the configuration. |
|
|
set(string)
|
fields(self)
Get all configuration field names in this section. |
|
|
unicode or as default
|
string(self,
name,
default=None)
Get a configuration field as a string. |
|
|
int or as default
|
integer(self,
name,
default=None)
Get a configuration field as an integer number. |
|
|
float or as default
|
real(self,
name,
default=None)
Get a configuration field as a real number. |
|
|
bool or as default
|
boolean(self,
name,
default=None)
Get a configuration field as a boolean. |
|
|
unicode or as default
|
strslist(self,
name,
default=None,
sep=' , ' )
Get a configuration field as a list of separated strings. |
|
|
unicode or as default
|
strdlist(self,
name,
default=None)
Get a configuration field as a list of delimited strings. |
|
|