[luci] Luci CBI

Jo-Philipp Wich xm at subsignal.org
Mon Jan 21 22:08:59 CET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Marcos,

please excuse the late reply.

Right now there is no possibility to use CBI maps on top of other
configuration file formats.

Since all read/list/set/delete operations of CBI are done through the
abstract luci.model.uci class, it should be easy to add support for
another backend class that provides the same api.

One example would be a "luci.model.inifile" or similar class which
also provides get(), set(), etc. so you can operate on a different
format instead.

However I think that such an approach would only work for
configuration file formats which are similar enough to UCI (means no
inifinite nesting etc.)

It would be possible to support simply key-value configs, init-style
configs but for example not Apache-like configs, at least not without
loosing flexibility.

I've been toying with the idea of support non-uci configs myself but
so far I haven't started any serious effort.

~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlD9rmsACgkQdputYINPTPPrdQCeKjDwTYysWwiVViQhpHqo2vRr
wBsAn0jaWTVqJ+so+w/wT7Q5XM34PEp9
=1pAY
-----END PGP SIGNATURE-----


More information about the luci mailing list