Commit graph

745 commits

Author SHA1 Message Date
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
Steven Barth
451eacf8da CBI-UVL integration part #1 2008-08-24 16:22:49 +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
4fc00fead3 * luci/libs: web: fix "dispatcher.lua:167: attempt to concatenate a
nil value" when running luci on a shell
2008-08-23 15:17:10 +00:00
Steven Barth
3bcab66128 RPC initial authentication API completed 2008-08-22 22:13:54 +00:00
Steven Barth
69cab40a9a libs/web: Remove unneeded status call 2008-08-22 22:01:53 +00:00
Steven Barth
20116047b0 Fix unhandled track values for leafs 2008-08-22 21:52:36 +00:00
Steven Barth
830ca24abb libs/http: Fixed default sink for unknown data 2008-08-22 20:33:48 +00:00
Steven Barth
03c0b0ad12 RPC part #3 2008-08-22 20:04:49 +00:00
Steven Barth
4eead17501 RPC part #2 2008-08-22 20:04:04 +00:00
Steven Barth
dcf0f6146f libs/rpc: Created new library 2008-08-21 19:13:45 +00:00
Jo-Philipp Wich
71c3d30f46 * luci/themes: several xhtml fixes 2008-08-20 19:44:16 +00:00
Steven Barth
3fdccc976e libs/web: Corrected HTTP-Headers 2008-08-20 19:24:09 +00:00
Steven Barth
0e1ec77d17 libs/web: Set Expires-Header 2008-08-20 19:04:10 +00:00
Jo-Philipp Wich
0938135dbb * luci/libs: add striptags() to global dispatcher namespace 2008-08-20 17:04:03 +00:00
Jo-Philipp Wich
18dfd21c39 * luci/libs: use striptags() in cbi <option> elements 2008-08-20 16:58:29 +00:00
Jo-Philipp Wich
ab71972c7e * luci/libs: use pcdata() in striptags() 2008-08-20 16:55:10 +00:00
Jo-Philipp Wich
5b718fe88d * luci/libs: add striptags() to luci.util 2008-08-20 16:40:25 +00:00
Jo-Philipp Wich
9a7c358cfb * luci/themes: fix help text styles in openwrt.org theme 2008-08-20 16:11:27 +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
Steven Barth
a35337e6a1 Minor bugfixes
Added possibility to add networks from Wifi page
2008-08-19 17:02:40 +00:00
Steven Barth
dc638500b5 libs/cbi: Moved typecasting to the appropriate place 2008-08-19 15:33:04 +00:00
Jo-Philipp Wich
e5608ae6b2 * luci/libs: fix datatype validation of list values 2008-08-18 23:43:20 +00:00
Steven Barth
d1a448604e libs/cbi: Added preliminary UCI list datatype support... for great justice 2008-08-18 23:26:06 +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
6802546621 * libs/luci: implement get_list() and set_list() wrappers in luci.model.uci 2008-08-18 18:06:49 +00:00
Steven Barth
ec796fc52a Fixed a typo 2008-08-18 08:30:15 +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
Steven Barth
935f4a805a Small bug fixes 2008-08-18 02:06:59 +00:00
Steven Barth
0c3fc70ddb Huuuuuuuuuuuge rewrite of the Wireless Configuration 2008-08-18 00:38:18 +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
db82e041a8 * luci: big svn property fixup 2008-08-17 23:47:38 +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
Steven Barth
97ce1ad8ad Preparing rewrite of WiFi configuration 2008-08-17 18:32:53 +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
Jo-Philipp Wich
c7ba7f99b0 * luci/libs: add keys() to luci.util 2008-08-17 14:56:03 +00:00
Jo-Philipp Wich
38ef0f92e7 * luci/libs: add alias to posix.readlink() in luci.fs 2008-08-17 14:47:49 +00:00
Steven Barth
75d4cca7ae Fixed a design flaw in luci.model.uci 2008-08-17 10:20:36 +00:00
Steven Barth
510fde0118 Added status information
Minor Cleanups
2008-08-16 23:17:50 +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
Steven Barth
d7b95a555b Added process control page
Minor improvements
2008-08-16 20:18:14 +00:00
Jo-Philipp Wich
5237b79adf * luci/libs: uvl - cleanup round #1 2008-08-16 20:06:51 +00:00
Steven Barth
09b829a9c7 UI Improvements 2008-08-16 15:37:28 +00:00
Jo-Philipp Wich
4ed96bb95e * luci/libs: more UVL hacking, needs to be rewritten later 2008-08-16 03:41:57 +00:00
Steven Barth
f94fb5ac18 Some cleanups 2008-08-15 22:22:54 +00:00
Steven Barth
8e4afe1210 Several escaping fixes
Updated XML translation system
Use the new Table widget for DHCP leases
2008-08-15 20:42:25 +00:00
Steven Barth
1d4196b3ff Some more escaping 2008-08-15 18:26:32 +00:00
Steven Barth
d212e531d5 Added missing value escaping
Fixed a typo (wrong if-condition)
Added support for Table objects in CBI
2008-08-15 18:18:16 +00:00
Steven Barth
8d9d419f84 libs/cbi: Some fixes 2008-08-15 09:22:45 +00:00
Steven Barth
4bd74d0a98 libs/core: Remove deprecated luci.bits which got replaced by bitlib 2008-08-14 22:51:12 +00:00
Steven Barth
d46f017564 libs/cbi: Prevent SimpleForms from prematurely parsing form data 2008-08-14 22:18:46 +00:00
Steven Barth
ff30f2292c libs/sys: Added luci.sys.mounts 2008-08-14 21:55:53 +00:00
Steven Barth
2b0e8c6d7f libs/core: Add luci.execi as memory efficient replacement for now deprecated luci.execl 2008-08-14 21:55:43 +00:00
Jo-Philipp Wich
23a4d764d9 * luci/libs: make uvl code usable 2008-08-14 21:52:06 +00:00
Steven Barth
68d499edb9 modules/admin-full: Rewrote route configuration page 2008-08-14 20:33:30 +00:00
Jo-Philipp Wich
7726e73725 * luci/libs: add preliminary uvl code 2008-08-14 20:24:31 +00:00
Steven Barth
1616d5a81e Enable more sanity checks for Password Changing page 2008-08-14 19:19:05 +00:00
Steven Barth
15e2e16c6d Converted password change form to CBI model 2008-08-14 19:01:36 +00:00
Steven Barth
d915e6e1d7 Converted IPKG configuration to CBI model
Removed abandoned code
2008-08-14 17:16:56 +00:00
Steven Barth
36717208f1 Fixed login form
Converted SSH-Keys to CBI-Map
2008-08-14 16:11:49 +00:00
Steven Barth
2c09564d76 modules/admin-core: Added several cross-references to relevant configuration pages 2008-08-14 14:51:06 +00:00
Steven Barth
e42779fcab User interface improvements part #3 2008-08-14 11:50:44 +00:00
Steven Barth
fce1109817 libs/cbi: Add cross-linking capabilities 2008-08-14 11:50:13 +00:00
Steven Barth
15f4fa76d5 libs/cbi: Added TextValue 2008-08-14 11:50:00 +00:00
Steven Barth
568441a441 libs/core: Added missing license information to coxpcall 2008-08-14 11:49:50 +00:00
Jo-Philipp Wich
dfdd557d5d * luci/libs: only create <legend> if there is a title in tblsection template 2008-08-14 01:33:48 +00:00
Jo-Philipp Wich
8591d4e396 * luci/libs: improved cbi templates
* luci/modules:	fix layout of sshkeys page in admin-full
2008-08-14 01:31:17 +00:00
Steven Barth
58f183a282 Completed rewrite of network interface configuration page 2008-08-13 22:54:38 +00:00
Jo-Philipp Wich
1dacc5c20a * luci/libs: changed template for tblsection to save more vertical space 2008-08-13 18:12:47 +00:00
Steven Barth
5dc01425ef More UI optimizations 2008-08-13 18:01:30 +00:00
Steven Barth
36f1dac36f User interface improvements part #2 2008-08-13 16:18:39 +00:00
Steven Barth
5a92c0fc08 libs/cbi: Improved user interface draft #1 2008-08-13 14:09:33 +00:00
Steven Barth
07fdaa87db modules/admin-full: Network interface configuration optimization part #1 2008-08-13 01:24:44 +00:00
Steven Barth
355ac6b1a2 libs/cbi: Added support for stateful Values, Added editlink template 2008-08-12 15:31:09 +00:00
Steven Barth
c10065b71c Added new Application luci-samba offering SMB/CIFS network share configuration 2008-08-11 16:05:50 +00:00
Steven Barth
b723b936c5 Minor bugfixes 2008-08-11 12:53:41 +00:00
Steven Barth
37b3fba688 Fixed last commit 2008-08-11 10:51:02 +00:00
Steven Barth
fdce917da5 libs/web: Even more sanity checks 2008-08-11 10:49:44 +00:00
Steven Barth
f83bb9996b libs/web: Add additional sanity checks to session mechanism 2008-08-11 10:43:31 +00:00
Steven Barth
673b4e1698 libs/web: Add an additional sanity check to Session IDs 2008-08-11 09:59:44 +00:00
Steven Barth
4bb4304974 Revert "* Fix last commit"
This reverts commit 0c680a15bc487d98bb8b50e4c57f735b957c4744.
2008-08-10 13:01:42 +00:00
Steven Barth
90a6f45d33 * Fix last commit 2008-08-10 13:01:16 +00:00
Steven Barth
f9fa6d82da * libs/web: Reworked authentication 2008-08-10 12:58:05 +00:00
Jo-Philipp Wich
2787a7f688 * luci/libs: In luci.ip: __array16() does assert() already, so drop redundant sanity checks in add() and sub() 2008-08-09 18:59:37 +00:00
Jo-Philipp Wich
ba298a020b * luci/libs: add missing parameter documentation for prefix() in luci.ip 2008-08-09 18:48:13 +00:00
Jo-Philipp Wich
a83de5a3b4 * luci/libs: updated documentation for luci.ip to use new features of luadoc 2008-08-09 18:41:30 +00:00
Steven Barth
bdb4bbde13 libs/cbi: Major Improvements
Added initial support for non-UCI-based forms (luci.cbi.SimpleForm)
	Minor API improvements
	Now correctly tagging "empty mandatory field" errors
2008-08-09 14:14:04 +00:00
Jo-Philipp Wich
f3624d2ccd * luci/libs: fixed documentation for broadcast() in luci.ip 2008-08-09 01:10:42 +00:00
Jo-Philipp Wich
648126f6d0 * luci/libs: added broadcast(), minhost() and maxhost() to luci.ip, allow various datatypes as add() and sub() operands, extended add() and sub() to modify data inplace when flag is set 2008-08-09 01:06:28 +00:00
Jo-Philipp Wich
74824c32bf * luci/libs: Damn, I should take english lessons ... corrected typos in inline documentation 2008-08-08 19:24:33 +00:00
Jo-Philipp Wich
9592b80af6 * luci/libs: added inline documentation and luci.ip.cidr.sub() to luci.ip; allow CIDR notation _and_ netmask argument in IPv4() and IPv6() constructors 2008-08-08 19:06:37 +00:00
Jo-Philipp Wich
a87b197aa8 * luci/libs: properly handle overflows in luci.ip.add() 2008-08-08 13:45:09 +00:00
Jo-Philipp Wich
e502d88407 * luci/libs: fix off-by-one bug in luci.ip 2008-08-08 12:55:57 +00:00
Jo-Philipp Wich
069ac1115d * luci/libs: fixed contains() in luci.ip 2008-08-08 12:38:21 +00:00
Steven Barth
e080fcebd2 libs/core: Cleaned up luci.sys in favor of the new luci.ip module 2008-08-08 12:26:45 +00:00
Steven Barth
f4ec942d1b libs/web: Added missing on_commit trigger 2008-08-08 10:42:34 +00:00
Jo-Philipp Wich
9587d9db02 * luci/libs: add assert() to contains() in luci.ip 2008-08-08 01:32:55 +00:00
Jo-Philipp Wich
12951a951e * luci/libs: fixed big endian in Hex() constructor 2008-08-08 01:04:52 +00:00
Jo-Philipp Wich
edccb1fc95 * luci/libs: added Hex() constructor to luci.ip 2008-08-08 01:03:25 +00:00
Steven Barth
fbae92e522 modules/admin-full: Added support for interface aliases 2008-08-07 20:21:38 +00:00
Steven Barth
e72a526984 libs/cbi: Added magic ;-) 2008-08-07 19:03:25 +00:00
Jo-Philipp Wich
adf1cc4c84 * libs/core/ip: save a redundant object in compare() 2008-08-07 15:39:52 +00:00
Steven Barth
3546ed9bbe lib/core: luci.ip: Added more sanity checks and optimizations 2008-08-07 15:25:59 +00:00
Steven Barth
256ab6b57c libs/core: Taught luci.ip how to use netmasks and smaller syntax sugars 2008-08-07 15:09:29 +00:00
Jo-Philipp Wich
f7f683579f * luci/libs/ip: fix add() 2008-08-07 12:48:25 +00:00
Jo-Philipp Wich
25dd9c5f9b * luci/libs: add preliminary ip calculation library 2008-08-07 12:44:33 +00:00
Steven Barth
a89101e5e5 Added missing Makefiles 2008-08-06 21:54:56 +00:00
Steven Barth
c9a2925055 libs/core: Outsourced luci.sys to own directory 2008-08-06 21:40:48 +00:00
Steven Barth
50093ed3d9 Moved luci.sys.libpath to luci.util 2008-08-06 20:20:40 +00:00
Steven Barth
76982655fa Moved luci.sys.exec, luci.sys.execl and luci.sys.bigendian to luci.util 2008-08-06 20:11:15 +00:00
Steven Barth
b1b0c085de Outsourced IPKG abstraction to own directory 2008-08-06 19:51:48 +00:00
Steven Barth
3899482aca libs/core: Replace luci.sys.bigendian with a system independent version 2008-08-06 19:26:35 +00:00
Steven Barth
206bf7f253 modules/admin-full: Several user interface improvements 2008-08-06 10:41:47 +00:00
Steven Barth
2755a46c4d applications/luci-splash: Updated to work with new UCI firewall 2008-08-05 12:58:20 +00:00
Steven Barth
eddcc1fdbd libs/cbi: Optimized Comboboxes 2008-08-05 00:44:31 +00:00
Steven Barth
9a63ad7c10 applications/luci-fw: Reworked to use the new native UCI-based firewall configuration 2008-08-04 23:36:33 +00:00
Steven Barth
3d1f9b05e9 libs/cbi: Optimized Comboboxes 2008-08-04 17:35:44 +00:00
Steven Barth
084db952ce libs/cbi: Added value function to luci.cbi.Value to create Comboboxes 2008-08-04 17:16:27 +00:00
Steven Barth
513e1cbba9 libs/core: luci.model.ipkg: Use OPKG instead of IPKG if available 2008-08-03 16:39:20 +00:00
Steven Barth
14e62cc311 libs/web: Fixed template escaping 2008-07-31 09:54:09 +00:00
Steven Barth
5c7ab64306 libs/cbi: Fixed CBI handling of "Save & Apply" 2008-07-30 19:01:07 +00:00
Steven Barth
8c3ee6f9b7 Added "apidocs" target to Makefile
contrib/luadoc: Added luadoc executable
libs: Fixed typos in inline documentation
2008-07-29 21:16:12 +00:00
Steven Barth
5b43543226 libs/web: Small improvements, added inline documentation 2008-07-29 20:32:02 +00:00
Steven Barth
a478f25f51 libs/lpk: Fixed typos 2008-07-29 17:00:06 +00:00
Steven Barth
8dad54251a libs/lpk: Several fixes in CLI -> Machine bindings 2008-07-29 16:54:30 +00:00
Steven Barth
41eceab4c4 libs/lpk: Updated CLI 2008-07-29 16:24:24 +00:00
Steven Barth
f8f4fe7523 modules: Redesigned configuration save, apply, save & apply menu options 2008-07-29 15:33:28 +00:00
Steven Barth
43ffb3aacb libs/cbi: Added "Save & Apply" button to CBI forms 2008-07-29 14:01:19 +00:00
Steven Barth
1f3700085c libs/lpk: Initial CLI 2008-07-28 15:16:44 +00:00
Steven Barth
db4447af91 libs/core: Renamed luci.util.create_dtable => luci.util.dtable 2008-07-28 14:17:30 +00:00
Steven Barth
84ad4e3e21 libs/core: Add luci.util.create_dtable 2008-07-28 13:07:22 +00:00
Steven Barth
3b29503f13 libs/lpk: Implemented register/stack/state machine 2008-07-27 17:38:05 +00:00
Steven Barth
e8c0707534 luci/lpk: Initial commit 2008-07-26 22:29:09 +00:00
Steven Barth
e5df13e80e libs: Fixed serialization stuff 2008-07-26 17:24:46 +00:00
Jo-Philipp Wich
81cf9b0206 * luci/libs/core: strip bytecode from serialized data too in get_bytecode() 2008-07-26 00:30:22 +00:00
Jo-Philipp Wich
d240fb4d8c * luci/libs/core: Oops... forgot the boolean datatype in serialize_data() 2008-07-26 00:08:43 +00:00
Steven Barth
a91f1a7e37 libs/core, libs/uci, libs/web: Fixed several inline documentation typos 2008-07-25 11:52:04 +00:00
Steven Barth
714d722961 libs/core: Fixed some typos in the luci.util inline documentation 2008-07-25 11:47:20 +00:00
Steven Barth
c5b7d39f2f libs/uci: Added inline documentation 2008-07-24 16:21:32 +00:00
Jo-Philipp Wich
184b6e6dcc * luci/libs/core: Small translation fix for get_bytecode() 2008-07-24 15:25:52 +00:00
Jo-Philipp Wich
1ff791f765 * luci/libd/core: Add serialize_data() and restore_data() to luci.util, use the new functions to permit the generation of bytecode for most data types. Translation fixes. 2008-07-24 15:23:38 +00:00
Steven Barth
7384e0e6b7 Rewrote host environment targets to work out of the box 2008-07-24 13:55:11 +00:00
Steven Barth
f94c7b2c10 libs/web: Cleanup and inline documentation 2008-07-23 19:27:33 +00:00
Steven Barth
22451345d8 Made SGIs even more standards compliant (respect EOF command from LuCI) 2008-07-23 18:52:12 +00:00
Steven Barth
59bef00fc3 Fix sgi-wsapi and sgi-luci to be standards compliant 2008-07-23 18:31:47 +00:00
Steven Barth
7a08658fe7 libs/core: Fixed docstrings for luci.util 2008-07-23 14:29:31 +00:00
Steven Barth
c5a68895cf libs/core: Update luci.sys inline documentation 2008-07-23 14:17:37 +00:00
Jo-Philipp Wich
ce5f619c4f * luci/libs/core: fix description of link() function in luci.fs 2008-07-23 13:35:12 +00:00
Steven Barth
71306947ea themes: Add registration of themes at package installation time 2008-07-23 11:32:53 +00:00
Steven Barth
4deb486228 i18n: Added dynamic registration for translations 2008-07-23 11:13:33 +00:00
Jo-Philipp Wich
f10b0e58e2 * luci/libs/core: add inline documentation to luci.fs, style fixups in util.lua 2008-07-23 01:53:52 +00:00
Steven Barth
b4ac19ca76 libs/core: Fixed luci.utils, Added missing in-line documentation 2008-07-22 21:13:04 +00:00
Jo-Philipp Wich
70b119b8ee * luci/libs/core: added inline documentation to luci.util, reordered and renamed functions to logical groups
* luci/libs/web:	rename dump() to get_bytecode()
2008-07-22 20:33:04 +00:00
Steven Barth
33b8cf5506 libs/core: Add in-line documentation for luci.util.class 2008-07-22 14:40:53 +00:00
Jo-Philipp Wich
c8e99f87b1 * luci/libs/core: add inline documentation to luci.sys 2008-07-22 03:43:33 +00:00
Jo-Philipp Wich
a037bfd207 * luci/libs/core: added inline documentation to luci.bits, removed duplicated copyright notice 2008-07-22 02:04:24 +00:00
Jo-Philipp Wich
ab9891e0af * luci/libs/http: added inline documentation to luci.http.protocol & friends, fixed urlencode_params() 2008-07-22 01:15:39 +00:00
Jo-Philipp Wich
4e587d53a8 * luci/themes: several small tweaks in openwrt.org theme
* luci/libs/cbi:	some template improvements
2008-07-20 15:16:13 +00:00
Jo-Philipp Wich
94a968e62f * luci/libs/cbi: print a notice in empty tblsections
* luci/i18n:		added new string to cbi translations
2008-07-20 01:34:05 +00:00
Steven Barth
faed4aa7f1 libs/sgi-cgi: Workaround for broken CGI implementation of Busybox HTTPd 2008-07-19 17:13:11 +00:00
Jo-Philipp Wich
040efb954f * luci/libs/http: use aliased ltn12. instead of luci.ltn12. 2008-07-19 16:53:34 +00:00
Jo-Philipp Wich
447df436fc * luci/libs/http: fix a few corner cases which can lead to bugs in mime decoding, allow the message body to exceed Content-Length by two bytes (to ignore a possible trailing \r\n) 2008-07-19 16:27:11 +00:00
Steven Barth
21b491c20b Send Cache-Control headers by default 2008-07-19 16:20:00 +00:00
Steven Barth
3da2286b3d Improved reloading system, fixed a bug with saving network settings 2008-07-19 14:18:03 +00:00
Steven Barth
3d794abec4 modules/admin-mini: Several tweaks, initial status page 2008-07-18 21:33:25 +00:00
Steven Barth
90c98540b1 libs/web: Fixed a bug regarding % characters in luci.template 2008-07-18 20:53:45 +00:00
Jo-Philipp Wich
8895d236ea * luci/libs/http: fix "attempt to compare string with number" in http.protocol 2008-07-18 17:18:09 +00:00
Jo-Philipp Wich
40988c4b36 * luci/libs/http: replace url decoder in http.protocol 2008-07-18 15:30:52 +00:00
Jo-Philipp Wich
8c46333ed1 * luci/libs/http: added more sanity checks to mime decoder 2008-07-18 14:19:56 +00:00
Jo-Philipp Wich
daa7d4e8a4 * luci/libs/http: fix wrong varname in http.protocol 2008-07-18 12:02:18 +00:00
Jo-Philipp Wich
fbd663c2eb * luci/libs/http: replaced mime decoder in http.protocol 2008-07-18 11:53:53 +00:00
Steven Barth
fce0b84501 Added new application luci-ntpc to luci-full and luci-mini 2008-07-17 21:01:15 +00:00
Steven Barth
43b9951481 New application luci-upnp for luci-full and luci-mini 2008-07-17 18:11:15 +00:00
Steven Barth
53a0f9867a libs/core: Fixed luci.fs.isfile 2008-07-17 18:09:26 +00:00
Steven Barth
52d49762ed applications/luci-qos: Smaller enhancements, support for luci-mini
applications/luci-fw: Fixed support for luci-mini
libs/web: Removed luci.dispatcher.registered
2008-07-17 16:02:29 +00:00
Steven Barth
8d1aff78b1 modules/admin-mini: Added Wifi configuration
several smaller bugfixes and enhancements
2008-07-16 18:54:10 +00:00
Jo-Philipp Wich
ea69b8dccc * libs/http: fix blocksize-related mime decoding problems in protocol.lua 2008-07-16 15:32:37 +00:00
Steven Barth
66a6492ae5 libs/web: Prevent luci.http to prematurely parse the POST data
modules/admin-mini: Added fw-upgrade page
2008-07-16 14:26:40 +00:00
Steven Barth
9b1ef9e2b1 libs/web: Made luci.http.write a sink 2008-07-16 09:18:27 +00:00
Steven Barth
9fd9401d9b libs/cbi: Fixed AbstractSection.create 2008-07-16 07:51:39 +00:00
Steven Barth
3ca2844c9f libs/web: Added luci.web.dispatcher.registered 2008-07-16 07:26:36 +00:00
Steven Barth
ced11a4a13 libs/cbi: Cleaned up *Section.create 2008-07-16 07:24:54 +00:00