Package jazzparser :: Package utils :: Module config :: Class ConfigFile
[hide private]
[frames] | no frames]

Class ConfigFile

source code

object --+
         |
        ConfigFile

A really simple interface to options stored in config files. Can also process a string as if read from the contents of a file.

Instance Methods [hide private]
 
__init__(self, filename, string=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parse_lines(self)
Parses the lines stored in self.lines.
source code
 
get_strings(self)
Get a list of strings containing all the config options in a form ready to be passed to optparse as if they were command-line options.
source code

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

Static Methods [hide private]
 
from_string(string) source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename, string=False)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

parse_lines(self)

source code 

Parses the lines stored in self.lines. Called by initialization. You can call this straight off if you've instantiated with a string.