Trees | Index | Help |
|
---|
Module bp_config :: Class Config |
|
RawConfigParser
--+ |ConfigParser
--+ | Config
Method Summary | |
---|---|
Constructor | |
Flush(self)
| |
Check if the specified key exists. | |
Read the value of keyword key, if that keyword does not exist, return default | |
Read the value of keyword key, if that keyword does not exist, return default | |
Read the value of keyword key, if that keyword does not exist, return default | |
Write the value of keyword key. | |
Write the value of keyword key. | |
Write the value of keyword key. | |
Inherited from ConfigParser | |
Get an option value for a given section. | |
Return a list of tuples with (name, value) for each option in the section. | |
Inherited from RawConfigParser | |
Create a new section in the configuration. | |
| |
| |
| |
| |
Check for the existence of a given option in a given section. | |
Indicate whether the named section is present in the configuration. | |
Return a list of option names for the given section name. | |
| |
Read and parse a filename or a list of filenames. | |
Like read() but the argument must be a file-like object. | |
Remove an option. | |
Remove a file section. | |
Return a list of section names, excluding [DEFAULT] | |
Set an option. | |
Write an .ini-format representation of the configuration state. |
Class Variable Summary | |
---|---|
Inherited from RawConfigParser | |
SRE_Pattern |
OPTCRE = ([^:=\s][^:=]*)\s*([:=])\s*(.*)$
|
SRE_Pattern |
SECTCRE = \[([^\]]+)\]
|
Method Details |
---|
__init__(self,
config_file_name=None)
Constructor
|
HasEntry(self, key)Check if the specified key exists.
|
Read(self, key, default='')Read the value of keyword key, if that keyword does not exist, return default
|
ReadFloat(self, key, default=0.0)Read the value of keyword key, if that keyword does not exist, return default
|
ReadInt(self, key, default=0)Read the value of keyword key, if that keyword does not exist, return default
|
Write(self, key, value)Write the value of keyword key.
|
WriteFloat(self, key, value)Write the value of keyword key.
|
WriteInt(self, key, value)Write the value of keyword key.
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Aug 15 18:58:27 2008 | http://epydoc.sf.net |