Steven Barth
9f7832b827
Main library optimizations #2
2008-09-09 15:40:00 +00:00
Steven Barth
9ffd02f8d6
Main library optimizations #1
2008-09-09 15:39:54 +00:00
Steven Barth
2d409a3586
Optimized uvl.dependencies
2008-09-09 15:39:43 +00:00
Steven Barth
64a4270a59
Fixed uvl.errors
2008-09-09 15:39:38 +00:00
Steven Barth
1bfd6b667b
Optimized uvl.validation
2008-09-09 15:39:30 +00:00
Steven Barth
c939a799ce
Optimized uvl.errors
2008-09-09 15:39:25 +00:00
Steven Barth
9a8cd55c36
Optimized uvl.datatypes
2008-09-09 15:39:17 +00:00
Steven Barth
c287c8ca7e
Scheme parsing optimizations
2008-09-09 15:39:10 +00:00
Steven Barth
68ecfaf698
Revert UVL optimizations
2008-09-09 12:44:51 +00:00
Steven Barth
023b4ddf64
Fixed UVL
2008-09-08 18:34:26 +00:00
Steven Barth
5d3bddd899
Fixed last commit
2008-09-08 17:55:24 +00:00
Steven Barth
9890c99d0b
UVL optimizations round 1
2008-09-08 14:39:47 +00:00
Jo-Philipp Wich
071f485a69
* luci/libs/uvl: prepare support for @type[n] notation in luci.uvl.uvlitem.cid()
2008-09-07 03:29:54 +00:00
Jo-Philipp Wich
885e54007f
* luci/libs/uvl: implement default value option for variable sections
2008-09-07 02:55:42 +00:00
Jo-Philipp Wich
98ff081c9f
* luci/libs/uvl: allow combined enum/valueof options
2008-09-07 00:44:54 +00:00
Jo-Philipp Wich
2b0f1af5cc
* luci/libs/uvl: fix an error message in luci.uvl.read_scheme()
2008-09-05 16:49:17 +00:00
Jo-Philipp Wich
3315203f2f
* luci/libs/uvl:
...
- implement bytecode loading in luci.uvl.read_scheme()
- add "uvlc" executable to byte-compile arbitary schemes
- add lib/uci/schema/bytecode/ directory
2008-09-05 16:46:51 +00:00
Jo-Philipp Wich
94996dd639
* luci/libs/uvl: translation fixes
2008-09-05 15:32:33 +00:00
Jo-Philipp Wich
35a529a5c5
* luci/libs/uvl:
...
- implement port and portrange datatypes
- fix datatype of port ranges in firewall scheme
2008-09-04 23:39:55 +00:00
Jo-Philipp Wich
19e22598fd
* luci/libs/uvl:
...
- implement aliasing in luci.uvl.read_scheme()
- fixed wrong enum definition in reference scheme
- fixed boolean() datatype validator to actually accept "true" and "false" literals
- extend uvl cli to validate schemes against the reference scheme (incomplete)
2008-09-04 00:56:13 +00:00
Jo-Philipp Wich
85461e4226
* luci/libs/uvl: fix error handling of OPT_INVVALUE too
2008-09-03 22:02:35 +00:00
Jo-Philipp Wich
727e9878fb
* luci/libs/uvl:
...
- implement host datatype which matches hostname, ip4addr or ip6addr datatype
- implement multival flag for options
- fix handling of OPT_BADVALUE errors
- add multival flag spec to reference scheme
2008-09-03 21:49:13 +00:00
Jo-Philipp Wich
eedb43da9b
* luci/libs/uvl:
...
- fix command line switches for uvl
- honour STRICT_UNKOWN_OPTIONS in luci.uvl._validate_option()
2008-09-03 02:08:38 +00:00
Jo-Philipp Wich
2b767fc45c
* luci/libs/uvl: completed network scheme, add "uint" and "ipaddr" datatypes
2008-09-03 01:45:43 +00:00
Jo-Philipp Wich
6b6abc95d0
* luci/libs/uvl:
...
- fix handling of missing package/section/variable fields in scheme specs
- fix dereferencing of scheme tables in luci.uvl.uvlitem.scheme()
- unify TYPE_VARIABLE and TYPE_OPTION
- implement external "regexp:..." validators
- extend reference scheme to implement "lazylist" type for lists
2008-09-02 22:13:52 +00:00
Jo-Philipp Wich
51bfdb1377
* luci/libs: uvl: implement package sections in the uvl scheme format
2008-09-02 20:24:06 +00:00
Jo-Philipp Wich
d1a035a62d
* luci/libs: uvl: reenable xml translations, adept to new method="text" conversation method
2008-09-02 01:11:46 +00:00
Jo-Philipp Wich
c230b83679
* luci/libs: uvl: fix possible "attempt to index field '?' (a nil value)" in uvl.uvlitem.config()
2008-09-01 20:48:18 +00:00
Jo-Philipp Wich
ec8047cf3b
* luci/libs: uvl: fix errors in xml translations
2008-08-31 13:51:33 +00:00
Jo-Philipp Wich
83ecefc76c
* luci/libs: uvl: hide xml translations, revert lua translations to non-bracket form (\n) and replace "<nil>" with "(nil)" in uvl.errors
2008-08-31 13:49:14 +00:00
Jo-Philipp Wich
4cfd1d25d1
* luci/libs: uvl: add error translations in german and english
2008-08-31 13:31:11 +00:00
Jo-Philipp Wich
8f0f4a04f5
* luci/libs: uvl: add i18n support to error handling, remove former debug code in error.string()
2008-08-31 12:42:29 +00:00
Jo-Philipp Wich
1b36a57d3e
* luci/libs: uvl: added qos and network schemes, fixes in uvl error handling
2008-08-30 15:15:42 +00:00
Jo-Philipp Wich
5778eae369
* luci/libs: uvl: invalid wrong "option not found in config" errors
2008-08-28 21:44:14 +00:00
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