aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/config.py
Commit message (Collapse)AuthorAgeFilesLines
* CONFIG_SPEC_PATH should be config_spec here, fixing.Christopher Allan Webber2011-06-181-1/+1
|
* Make REPORT_HEADER a unicode string also. Unicode everywhere, ideally!Christopher Allan Webber2011-06-181-1/+1
|
* Validation error reporting functionality.Christopher Allan Webber2011-06-181-6/+57
| | | | | | | | | | | | | Changed a few things so we can report errors to users properly in the config loading system. - We now return from read_mediagoblin_config both a loaded config and the validation results - We now have a helper function generate_validation_report that can generate a proper validation report saying if there are errors in a way that's useful to users. - Moved conf->config in the read_mediagoblin_config function, which looks nicer IMO.
* Configuration file loading via ConfigObj.Christopher Allan Webber2011-06-161-0/+71
Uses ConfigObj to open the config file. Also does validation via the config spec, so defaults are provided, strings are interpolated, types are converted.