Add option to source configuration from a file
authorSimo Sorce <simo@redhat.com>
Thu, 30 Oct 2014 02:01:55 +0000 (22:01 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Wed, 12 Nov 2014 22:47:36 +0000 (23:47 +0100)
commitb15a773ee9257f0102f24b6f634cf55a5948a443
tree138255b8ec6cc0f540787733b33cd946f4419d2e
parent4c86e749d9d35c7eca0e25b82bd072edc9426902
Add option to source configuration from a file

If the configfile:// schema is used, the data is sourced from an ini
style config file instead of being read from a database.

The tables in this data source will be considered read-only and
all modification functions will throw exceptions.

Only 2 and 3 columns tables are supported, and the first column
values must not contain spaces (typically a name/identifier).

The adminconfig db is the only supported one at this time.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/util/data.py