Jo-Philipp Wich
e226a77b24
libs/core: rework luci.util.pcdata() to also escape ascii control chars
2009-01-25 12:29:37 +00:00
Steven Barth
514a9bfec7
Add utime to luci.fs
2009-01-20 10:18:45 +00:00
Jo-Philipp Wich
89c8f98b12
build: add mkversion.sh helper script
...
contrib: (re-)generate version.lua at build time
libs/core: use version.lua
themes: adept header to version.lua, fix css for openwrt.org
2009-01-17 16:35:02 +00:00
Jo-Philipp Wich
870397a3cd
libs/ip: return a copy of given tables in __mask16() to avoid destroying them later
2008-12-27 01:42:34 +00:00
Jo-Philipp Wich
0c3f77a397
libs/core: implement fs.isdirectory()
2008-12-19 12:08:51 +00:00
Jo-Philipp Wich
dda65d2b94
libs/core/ip: optmizations
...
libs/sys: implement defaultroute6(), change return values of routes() and routes6()
modules/admin-full: adept route config page to new api
modules/freifunk: adept overview page to new routes api
2008-11-29 20:46:26 +00:00
Jo-Philipp Wich
18b4c1f6b6
libs/core/ip: fix host() method
2008-11-26 22:57:26 +00:00
Jo-Philipp Wich
fda52c6fec
libs/core/ip: fix prefix length handling in Hex() constructor
2008-11-26 22:29:14 +00:00
Steven Barth
408e9d289d
Fixed last commit
2008-11-20 21:16:02 +00:00
Steven Barth
8d2c8c131d
Remove luci.cutil: does not affect performance
2008-11-20 21:14:58 +00:00
Steven Barth
a3cf596d37
More luci.cutil
2008-11-20 19:39:40 +00:00
Steven Barth
9c260769a5
More C-Functions (luci.cutil.instanceof, luci.cutil.pcdata)
2008-11-20 19:22:05 +00:00
Steven Barth
9a203c52dd
Integrate core C implementation
2008-11-20 15:15:50 +00:00
Steven Barth
40639695cb
LuCI Core C-Rewrite: First steps
2008-11-19 23:02:36 +00:00
Jo-Philipp Wich
cbed72fb47
* luci/themes: fix log pages
...
* luci/modules/admin-full: add dmesg page
* luci/i18n: add "dmesg" translations
* luci/libs/util: add cmatch(), register string functions in string class
* luci/libs/sys: add dmesg()
2008-11-16 22:45:10 +00:00
Steven Barth
97130b6486
Make luci.fs.rename work across fielsystems
2008-11-12 12:52:57 +00:00
Steven Barth
676966f78b
Add luci.util.append
2008-10-30 19:10:39 +00:00
Steven Barth
8d9a130b70
luci.util.combine now also accepts single objects
2008-10-30 19:10:22 +00:00
Jo-Philipp Wich
9451a49408
* luci/libs/core: use numeric entities in pcdata()
2008-10-24 19:15:09 +00:00
Steven Barth
22c927621c
Optimized caching behaviour, automatically flush caches in dev environment
2008-09-15 16:49:56 +00:00
Steven Barth
1a4c192c65
More luci.util optimizations
2008-09-10 12:47:21 +00:00
Steven Barth
9e2759ec34
Optimized luci.util.class
2008-09-10 12:22:29 +00:00
Steven Barth
8dbf29e86e
Performance optimisations:
...
In-line expressions are faster than function calls
2008-09-09 12:44:41 +00:00
Steven Barth
1c2ab810b2
Bump version to 0.9
2008-09-06 14:07:21 +00:00
Steven Barth
8e00d27ae7
Removed unneeded exports
2008-09-06 09:58:32 +00:00
Steven Barth
40d4e839ef
Added bytecodecache
2008-09-05 23:24:39 +00:00
Steven Barth
e63d3f03eb
Added memory tracer
2008-09-05 20:32:20 +00:00
Steven Barth
4483ebd74d
Removed inefficient environment manipulation functions
2008-09-05 18:35:14 +00:00
Steven Barth
74408bbb74
Fixed reference to luci.ltn12
2008-09-02 08:24:45 +00:00
Steven Barth
76f2e5ec1a
Added luci.fs.copy and luci.fs.rename
2008-09-01 19:42:43 +00:00
Steven Barth
c1edac6ed0
libs/core: Added mising import for math module to luci.util
2008-09-01 11:10:06 +00:00
Steven Barth
ffd5c4ec65
General optimizations, simplifications and improvements
2008-08-29 23:26:01 +00:00
Steven Barth
e068351a3f
Cleanup and documentation
2008-08-29 15:47:56 +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
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
Steven Barth
0647fadb0a
libs/core: Add Pythonic string formatting syntax
2008-08-24 16:35:06 +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
db82e041a8
* luci: big svn property fixup
2008-08-17 23:47:38 +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
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
4bd74d0a98
libs/core: Remove deprecated luci.bits which got replaced by bitlib
2008-08-14 22:51:12 +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
Steven Barth
568441a441
libs/core: Added missing license information to coxpcall
2008-08-14 11:49:50 +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
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
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
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
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
513e1cbba9
libs/core: luci.model.ipkg: Use OPKG instead of IPKG if available
2008-08-03 16:39:20 +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
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
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
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
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
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
Steven Barth
3d794abec4
modules/admin-mini: Several tweaks, initial status page
2008-07-18 21:33:25 +00:00
Steven Barth
53a0f9867a
libs/core: Fixed luci.fs.isfile
2008-07-17 18:09:26 +00:00
Jo-Philipp Wich
426f12416d
* luci: add memory status patches from soma
2008-07-14 15:54:53 +00:00
Steven Barth
2edc50aa43
libs/core: Fixed luci.util.split
2008-07-05 16:27:24 +00:00
Steven Barth
66ec29f243
* libs/core: Moved ltn12 inside LuCI to avoid package conflicts with luasocket
2008-06-29 16:15:26 +00:00