summaryrefslogtreecommitdiffhomepage
path: root/libs/lucid-http
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-07-23 03:22:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-07-23 03:22:45 +0000
commit60aaab2ede82e0099cd6b3c4dae6b1357cc86234 (patch)
tree9eb7c9fbf678e7b5fcf7e51d997bb417eea55841 /libs/lucid-http
parenta4f6748205c6afd17811c9548aaae6b17476e6d8 (diff)
libs/lucid-http: prepare external indexing and tree building in luci handler
Diffstat (limited to 'libs/lucid-http')
-rw-r--r--libs/lucid-http/luasrc/lucid/http/handler/luci.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/lucid-http/luasrc/lucid/http/handler/luci.lua b/libs/lucid-http/luasrc/lucid/http/handler/luci.lua
index d816aae13..8f203e163 100644
--- a/libs/lucid-http/luasrc/lucid/http/handler/luci.lua
+++ b/libs/lucid-http/luasrc/lucid/http/handler/luci.lua
@@ -11,6 +11,7 @@ You may obtain a copy of the License at
$Id$
]]--
+local cbi = require "luci.cbi"
local dsp = require "luci.dispatcher"
local util = require "luci.util"
local http = require "luci.http"
@@ -33,6 +34,8 @@ Luci = util.class(srv.Handler)
function Luci.__init__(self, name, prefix)
srv.Handler.__init__(self, name)
self.prefix = prefix
+
+ self.dsp_tree = dsp.createtree()
end
--- Handle a HEAD request.
@@ -66,7 +69,7 @@ function Luci.handle_GET(self, request, sourcein)
local x = coroutine.create(dsp.httpdispatch)
while not id or id < 3 do
- res, id, data1, data2 = coroutine.resume(x, r, self.prefix)
+ res, id, data1, data2 = coroutine.resume(x, r, self.prefix, self.dsp_tree)
if not res then
status = 500