Commit graph

29 commits

Author SHA1 Message Date
Steven Barth
565bc6d4c2 libs/uvl: Set an own savedir to avoid UCI problems 2008-08-28 18:57:49 +00:00
Jo-Philipp Wich
c2f79950b2 * luci/libs: uvl: add uci error mechanism to uvl error handling 2008-08-28 00:21:43 +00:00
Jo-Philipp Wich
8be65461bc * luci/libs: uvl: fix crash when trying to validate malformed or not-existing configuration, more verbose error message for uci load failure 2008-08-27 18:55:42 +00:00
Jo-Philipp Wich
339042c46a * luci/libs: uvl: allow optional uci config as argument in validate_*() 2008-08-27 17:51:35 +00:00
Jo-Philipp Wich
4e15641c24 * luci/libs: uvl: actually create error constants in luci.uvl.error 2008-08-27 16:56:38 +00:00
Jo-Philipp Wich
aa94931fa0 * luci/libs: uvl: Major rewrite of internal element handling, reworked error model, dropped loghelper and get_dependencies(), introduced luci.uvl.errors api 2008-08-27 16:44:07 +00:00
Jo-Philipp Wich
8e6d1e682a * luci/libs: uvl: implement dependencies for enum values 2008-08-25 18:30:25 +00:00
Jo-Philipp Wich
a0b9f952e5 * luci/libs: uvl: store valueof values as associative table 2008-08-24 18:33:25 +00:00
Jo-Philipp Wich
e124eec0e8 * luci/libs: uvl: implement "valueof" option 2008-08-24 18:06:51 +00:00
Jo-Philipp Wich
75aac77206 * luci/libs: uvl: remove a brain-dead unpack() 2008-08-24 17:14:31 +00:00
Jo-Philipp Wich
5117fc703e * luci/libs: uvl: use python-style format syntax for errors 2008-08-24 17:12:16 +00:00
Jo-Philipp Wich
1946740198 * luci/libs: uvl: implement "named" flag for schemes 2008-08-24 16:09:02 +00:00
Jo-Philipp Wich
23101e7137 * luci/libs: uvl: implement get_scheme() and get_dependencies() 2008-08-24 14:20:20 +00:00
Jo-Philipp Wich
8000a4e704 * luci/libs: change default scheme directory to /lib/uci/schema/ in uvl 2008-08-19 17:19:32 +00:00
Jo-Philipp Wich
e5608ae6b2 * luci/libs: fix datatype validation of list values 2008-08-18 23:43:20 +00:00
Jo-Philipp Wich
70aa9bb855 * luci/libs: uvl: add support for list values in schemes and configurations 2008-08-18 20:37:13 +00:00
Jo-Philipp Wich
0fb1e9267b * luci/libs: use one common quoting style for error messages in luci.uvl 2008-08-18 02:30:15 +00:00
Jo-Philipp Wich
d0cbcfa458 * luci/libs: further fixes in uvl cli and library 2008-08-17 23:40:51 +00:00
Jo-Philipp Wich
5e606c8fe2 * luci/libs: uvl: rename validate() to validate_config() and reimplement validate() as "catch all" variant 2008-08-17 21:43:56 +00:00
Jo-Philipp Wich
a966a3b2b4 * luci/libs: uvl: implement scheme loading on demand, add inline documentation 2008-08-17 18:47:32 +00:00
Jo-Philipp Wich
1d08361bea * luci/libs: uvl: add support for external validation commands, various cleanups 2008-08-17 17:40:57 +00:00
Jo-Philipp Wich
ed5c3eacf0 * luci/libs: uvl: fix handling of boolean options, better error descriptions, implement "required" and "unique" scheme properties for sections 2008-08-17 15:31:48 +00:00
Steven Barth
75d4cca7ae Fixed a design flaw in luci.model.uci 2008-08-17 10:20:36 +00:00
Jo-Philipp Wich
f5046bbca7 * luci/libs: uvl - cleanup round #3, flush lookup tables to prevent circular depency errors when reusing scheme instance 2008-08-16 21:02:46 +00:00
Jo-Philipp Wich
ef0be82b31 * luci/libs: uvl - cleanup round #2, reinitroduce validate_section() and validate_option() 2008-08-16 20:41:13 +00:00
Jo-Philipp Wich
5237b79adf * luci/libs: uvl - cleanup round #1 2008-08-16 20:06:51 +00:00
Jo-Philipp Wich
4ed96bb95e * luci/libs: more UVL hacking, needs to be rewritten later 2008-08-16 03:41:57 +00:00
Jo-Philipp Wich
23a4d764d9 * luci/libs: make uvl code usable 2008-08-14 21:52:06 +00:00
Jo-Philipp Wich
7726e73725 * luci/libs: add preliminary uvl code 2008-08-14 20:24:31 +00:00