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
96e7e81d1d
* luci/libs/uvl: fix description of default option in meta scheme
2008-09-07 02:57:47 +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
1bc3365f02
* luci/libs/uvl: add scheme for luci_hosts configuration
2008-09-06 18:14:17 +00:00
Steven Barth
a59d6a7877
Added proto: none to network scheme
2008-09-06 16:46:27 +00:00
Jo-Philipp Wich
cc7e96e352
* luci/libs/uvl: add definition for route sections to network scheme
2008-09-06 03:05:27 +00:00
Jo-Philipp Wich
a37ba532ff
* luci/libs/uvl: fix dependencies in qos scheme
2008-09-05 23:22:00 +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
406de82821
* luci/libs/uvl: make "proto=dhcp" the default value in network scheme
2008-09-05 14:26:54 +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
5cf454019c
* luci/libs/uvl: fix zone references in firewall scheme
2008-09-03 21:11:05 +00:00
Jo-Philipp Wich
ba3c967d65
* luci/libs/uvl: completed firewall scheme
2008-09-03 21:07:07 +00:00
Jo-Philipp Wich
7c91b79121
* luci/libs/uvl: add "network" option to firewall scheme
2008-09-03 10:52:40 +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
3817e51402
* luci/libs/uvl: add missing username, password and server options to network schame, fix c-n-p errors
2008-09-03 01:51:12 +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
15eb2bcbb0
* luci/libs: uvl: remove deprecated notice from reference scheme
2008-09-02 22:26:36 +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
6179e46ff5
* luci/libs: uvl: add definition of package sections to meta scheme
2008-09-02 00:39:26 +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
4afe2a3d3e
* luci/libs: uvl: add reference meta scheme
2008-08-31 18:20:08 +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
d564e036b3
* luci/libs: uvl: first round of uci schemes
2008-08-30 03:46:55 +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
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
3944408637
* luci/libs: set svn property on uvl executable
2008-08-17 23:50:56 +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
6d5efc7925
* luci/libs: properly implement and document --schemedir in uvl cli
2008-08-17 23:30:23 +00:00
Jo-Philipp Wich
13439a8ac5
* luci/libs: fix typo in uvl utility
2008-08-17 22:44:15 +00:00
Jo-Philipp Wich
ed05a304d9
* luci/libs: add missing shebang to uvl cli
2008-08-17 22:38:10 +00:00
Jo-Philipp Wich
f9edabb142
* luci/libs: add uvl cli utility
2008-08-17 22:34:09 +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