4 Commits

Author SHA1 Message Date
Christopher Allan Webber
e5aa1ec6b4 CONFIG_SPEC_PATH should be config_spec here, fixing. 2011-06-18 16:51:35 -05:00
Christopher Allan Webber
9dba44de84 Make REPORT_HEADER a unicode string also. Unicode everywhere, ideally! 2011-06-18 15:18:25 -05:00
Christopher Allan Webber
4fd487f72e Validation error reporting functionality.
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.
2011-06-18 15:01:32 -05:00
Christopher Allan Webber
e2c6436e3e Configuration file loading via ConfigObj.
Uses ConfigObj to open the config file.  Also does validation via the
config spec, so defaults are provided, strings are interpolated, types
are converted.
2011-06-16 08:21:51 -05:00