oslo.config/oslo_config
Stephen Finucane eb6b43ba06 sphinxext: Reporting correct lines for errors
Previously, we had an issue whereby errors found in the generated source
would result in the following, rather unhelpful error messages:

  <oslo_config.sphinxext>:1: WARNING: Unexpected indentation.

Turns out that the 'ViewList.append' function takes a third argument,
'offset', to indicate where in the source an error is occurring. Start
using this to improve the quality of the error messages we get from
poorly formatted options. Given that we don't actually modify the source
file, it's also necessary to write the output from the directive to an
intermediate temp file.

This also fixes the order of imports, given that we're adding new
imports as we go.

Change-Id: I6f6796629705926dbed5015f20d47187b77c9c50
Related-Bug: #1755783
2018-06-18 12:29:18 +01:00
..
tests Properly initialize HostAddress 2018-05-07 22:21:17 +00:00
__init__.py Move files out of the namespace package 2014-12-12 16:13:29 -05:00
_i18n.py Update URLs in documents according to document migration 2017-07-12 22:32:03 +08:00
_list_opts.py Add defaults for config-dir 2016-11-30 06:58:12 +01:00
cfg.py improve the documentation for option location information 2018-06-13 13:37:16 -04:00
cfgfilter.py Fix typo 'importopt' to 'import_opt' adding the missing _ 2018-04-06 17:47:17 +02:00
fixture.py track config file and command line locations for user settings 2018-03-15 10:14:03 -04:00
generator.py Provide descriptions for choices 2017-12-13 14:33:03 +00:00
iniparser.py Move files out of the namespace package 2014-12-12 16:13:29 -05:00
sphinxconfiggen.py sphinxconfiggen to generate multiple sample files 2016-05-11 17:06:00 -05:00
sphinxext.py sphinxext: Reporting correct lines for errors 2018-06-18 12:29:18 +01:00
types.py Properly initialize HostAddress 2018-05-07 22:21:17 +00:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:23 -05:00