Home | Trees | Indices | Help |
|
---|
|
ConfigParser.RawConfigParser --+ | ConfigParser.ConfigParser --+ | Configuration
Copy a configuration file (ini format) in memory.
This class subclass the Configparser class. Configparser is used to read() a configuration file (ini format) in memory in the form of a dictionary associating sections and options. This class implement a new method which allow to retrieve and cast a configuration option and asserts the option do exists and can be casted. The config file could be edited by the user and you know... never trust user input.
![]() |
Class Hierarchy for Configuration |
|
|||
|
|||
str or int or bool or float or list (depends on "typeCast" param) |
|
||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from Inherited from |
|
Configuration creator.
|
A more secure way to retrieve configuration options. This method check if the section and the option is in the configuration dictionary, else it raise an error. Also this method allow an optional parameter for casting the result before returning it. Allowed type casting are:
The method makes sure the casting is possible.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 14 21:07:50 2015 | http://epydoc.sourceforge.net |