config: Abolish use of ConfigParser's DEFAULT feature
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 24 Apr 2017 00:00:29 +0000 (01:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 24 Apr 2017 00:00:29 +0000 (01:00 +0100)
commit71f9ddb6f396ddbed730155dea6adbb83d2df841
tree1a6298dc60a74ca0e2b4d9d1d4a120b4988f040d
parent300fe4ed2e3210ad3d90a8f4f5937224300691ac
config: Abolish use of ConfigParser's DEFAULT feature

ConfigParser provides no way to find out which sections a key is
_really_ in: in all of its views, keys in DEFAULT appear aliased in
all sections.

So instead we use a COMMON section, and implement the defaulting
ourselves.  This involves:

* Changing the cfg.get[int] calls to use cfg_search (these are
  the things which implictly use DEFAULT and now need to be
  explicit).
* Changing all our explicit references to and definitions of
  DEFAULT options to COMMON.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
README.config
hippotatd
hippotatlib/__init__.py