Steven Barth
7334fc65b2
Fixed a swap of keys and descriptions in additional fields of dynamic sections
2008-09-07 22:55:10 +00:00
Steven Barth
d8282d382b
libs/cbi: Catch errors while creating named sections
2008-09-07 21:22:39 +00:00
Steven Barth
d8e11218b4
Remove "done." message from luci-reload
2008-09-07 18:54:25 +00:00
Jo-Philipp Wich
a8f137973b
* luci/libs/uvl: add asterisk uci config scheme
2008-09-07 18:53:15 +00:00
Steven Barth
7bcd7e67d4
Fixed last commit
2008-09-07 16:27:01 +00:00
Steven Barth
85f9c51016
libs/cbi: Don't validate on reparse after commiting
2008-09-07 16:25:42 +00:00
Jo-Philipp Wich
1dcd836a30
* luci/libs/uvl: fix firewall scheme issue with custom rules
2008-09-07 15:27:24 +00:00
Jo-Philipp Wich
6a5ce5e45f
* luci/libs/uvl: extend firewall scheme to include more sane dependencies for custom rules
2008-09-07 13:38:23 +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
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
c5278e17dc
* luci/libs/cbi: fix error assignment in cbi sections
2008-09-06 22:37:56 +00:00
Steven Barth
a9875adb29
Merge branch 'uvldoc'
2008-09-06 20:18:00 +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
Steven Barth
3001586c04
Cosemtical changes
2008-09-06 16:27:40 +00:00
Steven Barth
38bdb5f504
Fixed a whitespace issue
2008-09-06 16:09:58 +00:00
Steven Barth
f297be56e9
Fixed permissions of luci-reload
2008-09-06 16:05:34 +00:00
Steven Barth
9befed193a
cbi: Increare responsiveness of "Save & Apply"
2008-09-06 14:59:48 +00:00
Steven Barth
03e11688ca
One more
2008-09-06 14:31:17 +00:00
Steven Barth
1c2ab810b2
Bump version to 0.9
2008-09-06 14:07:21 +00:00
Steven Barth
dbde0216c2
Rewrote UCI apply logic
2008-09-06 13:51:51 +00:00
Steven Barth
8e00d27ae7
Removed unneeded exports
2008-09-06 09:58:32 +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
7f7a600b12
* luci/libs/cbi: remove dead code
2008-09-05 23:25:51 +00:00
Steven Barth
40d4e839ef
Added bytecodecache
2008-09-05 23:24:39 +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
898c45743a
* luci/libs/cbi: improved error integration with uvl
2008-09-05 23:21:37 +00:00
Steven Barth
e63d3f03eb
Added memory tracer
2008-09-05 20:32:20 +00:00
Steven Barth
ac05bea1be
Small dispatcher improvement
2008-09-05 19:17:48 +00:00
Steven Barth
a8a72c1ec8
Fixed luci.config
2008-09-05 18:39:42 +00:00
Steven Barth
4483ebd74d
Removed inefficient environment manipulation functions
2008-09-05 18:35:14 +00:00
Steven Barth
6a6edda049
Heavy memory/performance optimizations #4
2008-09-05 18:35:09 +00:00
Steven Barth
37b5ef40df
Heavy memory/performance optimizations #3
2008-09-05 18:35:03 +00:00
Steven Barth
45319b232b
Heavy memory/performance optimizations #2
2008-09-05 18:34:56 +00:00
Steven Barth
3e9e582572
Heavy memory/performance optimizations #1
2008-09-05 18:34:46 +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
Steven Barth
8af9060efd
libs/cbi: Pass default values from UVL
2008-09-05 15:58:19 +00:00
Jo-Philipp Wich
94996dd639
* luci/libs/uvl: translation fixes
2008-09-05 15:32:33 +00:00
Steven Barth
c03bde275f
Inprove sanity check for luci.sauth.read
2008-09-05 14:52:06 +00:00
Steven Barth
47c07adf75
libs/web: Turn dependency tracking on by default
2008-09-05 14:34:59 +00:00
Steven Barth
e2e1cf5497
Fixed some minor session handling issues
2008-09-05 14:28:36 +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
Steven Barth
aa0617e4ed
libs/sys: Added luci.sys.call
2008-09-05 13:55:49 +00:00
Steven Barth
9243e20e27
Added .href parameter to DummyValues
2008-09-05 13:32:59 +00:00
Steven Barth
9cae9dabf2
Fixed luci.uci.Cursor.delete_all
2008-09-05 12:05:06 +00:00
Steven Barth
f62839fde9
Fixed HTTP stack to parse urlencoded data from Internet Explorer correctly
...
Internet Explorer appends a whitespace character after the last parameter which will now be stripped
2008-09-05 11:36:53 +00:00
Steven Barth
cc4c0688b5
Fix whitespace issues in CBI template
2008-09-05 11:36:47 +00:00
Steven Barth
cac36db080
Optimized error handling
2008-09-05 09:37:02 +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
Steven Barth
d1c078e1a7
Use /usr/bin/env lua instead of /usr/bin/lua in development environment startscript
2008-09-04 20:13:17 +00:00
Steven Barth
e4cbd59c39
Add table-comparators to luci.model.uci.delete_all
2008-09-04 11:48:27 +00:00
Steven Barth
1f2289b41e
libs/cbi: Use a Combobox for optional values if a section is dynamic and has defined optional fields
2008-09-04 09:55:46 +00:00
Steven Barth
ccc02d4188
Fixed event handlers to be more standards compliant
...
(fixed dependency tracking not working correctly on Konqueror and others)
2008-09-04 09:31:54 +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
Steven Barth
34ab619ee3
libs/cbi: Compatibility changes for non-standards-compliant browsers
2008-09-03 22:51:27 +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
Steven Barth
43a730c88a
libs/web: Fixed luci.template
2008-09-03 11:01:21 +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
Steven Barth
eb279ab360
Alias luci.util.exec as luci.sys.exec for legacy purposes
2008-09-02 19:08:43 +00:00
Steven Barth
95f9bb97ba
Fixed occasionally occuring "Overload"-problems with luci-httpd
2008-09-02 15:03:18 +00:00
Steven Barth
048fe5ce12
Fixed some UCI transition fallout
2008-09-02 14:50:00 +00:00
Steven Barth
b693e1ab91
Rewrote luci.config
2008-09-02 14:24:00 +00:00
Steven Barth
bdf75b1e03
libs/uci: Optimized workaround
2008-09-02 09:02:20 +00:00
Steven Barth
765d5b8540
libs/web: Fixed a typo in template error handling
2008-09-02 09:02:13 +00:00
Steven Barth
74408bbb74
Fixed reference to luci.ltn12
2008-09-02 08:24:45 +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
Steven Barth
e5be8db114
UGLY workaround is UGLY
2008-09-01 21:40:08 +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
Steven Barth
06b6d23c20
Added custom filename support to luci.template
2008-09-01 20:43:48 +00:00
Steven Barth
3568e2ba50
libs/cbi: Forward errors (like syntactical errors) from CBI model parser to the user output
2008-09-01 19:51:37 +00:00
Steven Barth
76f2e5ec1a
Added luci.fs.copy and luci.fs.rename
2008-09-01 19:42:43 +00:00
Steven Barth
895b68050b
libs/web: Cleaned up template library
2008-09-01 16:05:40 +00:00
Steven Barth
bb8137062f
libs/web: Added several sanity checks to avoid local privilege escalation
2008-09-01 16:05:34 +00:00
Steven Barth
c1edac6ed0
libs/core: Added mising import for math module to luci.util
2008-09-01 11:10:06 +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
Steven Barth
f28422324d
libs/web: Fix dispatching index scope
2008-08-31 10:48:56 +00:00
Steven Barth
041321c5f7
libs/uci: Pipe output of reload commands to /dev/null
2008-08-30 21:14:08 +00:00
Steven Barth
05d6b9684c
libs/cbi: Make sure newly created sections have optional field selectors
2008-08-30 20:32:13 +00:00
Steven Barth
d5cfb28f9b
libs/cbi: Add a check whether a section was recently created
2008-08-30 20:32:07 +00:00
Steven Barth
cec13fcb29
libs/web: Return more verbose error messages when template execution fails
2008-08-30 20:32:00 +00:00
Steven Barth
171cbec25d
libs/cbi: Simplified _uvl_validate_section
2008-08-30 15:41:02 +00:00
Steven Barth
0e05dbb02e
libs/cbi: Use :is instead of .code == for UVL error tests
2008-08-30 15:29:09 +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
Steven Barth
63706a9f43
libs/cbi: Disable strict mode for now
2008-08-30 12:47:14 +00:00
Steven Barth
055cef5336
Optimized UVL validation handling
2008-08-30 12:11:27 +00:00
Steven Barth
7e792dad2e
libs/cbi: Create section after validation to avoid validation errors with empty fields
2008-08-30 10:18:56 +00:00
Steven Barth
ccf73ec14e
libs/cbi: Temporarily allow invalid configuration values to be saved
2008-08-30 09:21:38 +00:00
Jo-Philipp Wich
d564e036b3
* luci/libs: uvl: first round of uci schemes
2008-08-30 03:46:55 +00:00
Steven Barth
76c5cc5ff9
libs/ipkg: Fixed a transition issue
2008-08-29 23:41:24 +00:00
Steven Barth
ffd5c4ec65
General optimizations, simplifications and improvements
2008-08-29 23:26:01 +00:00
Steven Barth
5cfda95377
Speed up generation of dispatching tree
2008-08-29 20:36:45 +00:00
Steven Barth
944f753eba
lib/sys: Fixed inline documentation
2008-08-29 17:38:23 +00:00
Steven Barth
a0650b4ca9
modules/rpc: Check for existence of external libraries
...
libs/sys: Small fix for API-Documentation
2008-08-29 17:06:58 +00:00
Steven Barth
e068351a3f
Cleanup and documentation
2008-08-29 15:47:56 +00:00
Steven Barth
b6e397e1a4
Optimized encoding of arrays containing nil values
...
Optimized inline documentation
2008-08-29 13:44:33 +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
8003e3b648
libs/cbi: Make sure options in ListValues are unique
2008-08-28 21:30:49 +00:00
Steven Barth
4ca6f02af2
CBI-UVL Validation Integration part #1
2008-08-28 19:31:25 +00:00
Steven Barth
565bc6d4c2
libs/uvl: Set an own savedir to avoid UCI problems
2008-08-28 18:57:49 +00:00
Steven Barth
8f03192ce4
Fixed luci.util.dumptable again
2008-08-28 18:57:34 +00:00
Steven Barth
8b28f46eea
Added maxdepth to luci.util.dumptable
2008-08-28 17:10:35 +00:00
Jo-Philipp Wich
af2cce3839
* luci/libs: util: little bugfix in serialize_data()
2008-08-28 16:44:10 +00:00
Jo-Philipp Wich
33ef3a1da2
* luci/libs: util: further enhancements to table serialisation
2008-08-28 16:40:51 +00:00
Jo-Philipp Wich
2975bb66a6
* luci/libs: util: improve table handling and support mixed tables in serialize_data()
2008-08-28 16:17:42 +00:00
Steven Barth
b3d63252e7
Fixed luci.util.dumptable
2008-08-28 16:16:51 +00:00
Steven Barth
ba22660cb8
libs/core: Add recursion detection to dumptable, serialize_data
...
Dumptable now writes to stderr
2008-08-28 15:50:27 +00:00
Steven Barth
b5b0914ae3
libs/uci: Updated API-Docs
2008-08-28 10:18:10 +00:00
Steven Barth
12912ba7a4
Fixed enum dependencies
2008-08-28 09:11:16 +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
Steven Barth
a3fcd87a71
Fixed incompatible APIs in CBI
2008-08-27 22:02:38 +00:00
Steven Barth
11bcdfd91a
Switch back to mainline UCI
2008-08-27 21:32:05 +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
Steven Barth
9a8eb7fce6
Rewrote the API-documentation for luci.json
2008-08-27 17:49:52 +00:00
Steven Barth
af18067e75
Fix some synchronization issues
2008-08-27 17:45:58 +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
Steven Barth
ccb1ea29ac
Added missing import
2008-08-27 13:49:32 +00:00
Steven Barth
d463d0b835
Renamed reworked UCI API to uci2 to allow a peaceful coexistence with the old one
...
Minor bugfixes
2008-08-27 08:53:40 +00:00
Steven Barth
91ba7c42f5
UCI API changes
2008-08-26 23:00:44 +00:00
Steven Barth
43b3217e55
libs/cbi: Added support for enum dependencies
2008-08-26 19:36:41 +00:00
Steven Barth
3a09a73d2b
libs/core: Added target parameter to luci.sys.httpget
2008-08-26 18:02:27 +00:00
Steven Barth
df40e4df5e
libs/json: Completed JSON library
...
modules/rpc: Added experimental JSON-RPC API
2008-08-26 17:50:32 +00:00
Steven Barth
0c5dc7bc77
libs/core: Reworked some basic libraries to not use package.seeall
...
libs/json: Implemented own JSON-Decoder (Encoder will follow)
modules/rpc: Preliminary implemented RPC-Exports for luci.fs, luci.sys and luci.model.uci
2008-08-26 00:53:28 +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
1e6001c235
* luci/libs: cbi: implement get_scheme() on some more map-like objects; whitespace cleanup
2008-08-25 00:36:07 +00:00
Steven Barth
d97d6329c3
libs/cbi: Fixed UVL integration
2008-08-24 20:44:47 +00:00
Steven Barth
d68d03085a
CBI-UVL integration part #2
2008-08-24 19:51:09 +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
Steven Barth
0647fadb0a
libs/core: Add Pythonic string formatting syntax
2008-08-24 16:35:06 +00:00