Commit graph

77 commits

Author SHA1 Message Date
Jo-Philipp Wich
725719c221 * luci/libs/uvl: add new datatype "device" 2008-10-12 22:24:41 +00:00
Jo-Philipp Wich
255449a1e2 * luci/i18n: rename *.pt_br.* to *.pt-br.*, extend luci.i18n to convert "_" to "-" in language tags 2008-10-05 16:08:33 +00:00
Jo-Philipp Wich
b0cbce0da2 * luci/i18n/portuguese_brazilian: add uvl lua translation too 2008-10-02 14:12:04 +00:00
Jo-Philipp Wich
76f8ba692f * luci/i18n/portuguese_brazilian: add uvl translations 2008-10-02 14:11:18 +00:00
Steven Barth
f9303705a0 Overall CBI-UVL ineraction fixes 2008-09-13 12:20:39 +00:00
Jo-Philipp Wich
a8d165a5bf * luci/libs/uvl:
- only check option dependencies if option has a value
	- remove option required for atheros mode in wireless scheme - breaks broadcom
* luci/model/admin-full:
	- override section validation if we create a new network on demand
2008-09-13 04:26:37 +00:00
Steven Barth
e5cb252043 UVL: Fixed dependency handling 2008-09-11 12:58:57 +00:00
Steven Barth
ef8f835894 UVL: Fixed dependency parsing 2008-09-10 23:16:36 +00:00
Steven Barth
38691ce540 UVL: Export raw value of "valueof" for references 2008-09-10 15:35:11 +00:00
Steven Barth
a4a77446e9 UVL: Add missing export for loadfile 2008-09-09 18:47:45 +00:00
Jo-Philipp Wich
77432eb047 * luci/libs/uvl: allow empty strings or undefined options as booleans too 2008-09-09 16:28:19 +00:00
Steven Barth
abad8af0e7 again 2008-09-09 16:20:56 +00:00
Steven Barth
cd1db0eda2 Fixed last commit 2008-09-09 16:19:52 +00:00
Steven Barth
8766b050bd Replace some util.splits with gmatch and match 2008-09-09 16:04:49 +00:00
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