Changeset 5115

Show
Ignore:
Timestamp:
07/23/09 04:22:45 (4 years ago)
Author:
jow
Message:

libs/lucid-http: prepare external indexing and tree building in luci handler

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/lucid-http/luasrc/lucid/http/handler/luci.lua

    r4839 r5115  
    1212]]-- 
    1313 
     14local cbi = require "luci.cbi" 
    1415local dsp = require "luci.dispatcher" 
    1516local util = require "luci.util" 
     
    3435    srv.Handler.__init__(self, name) 
    3536    self.prefix = prefix 
     37 
     38    self.dsp_tree = dsp.createtree() 
    3639end 
    3740 
     
    6770    local x = coroutine.create(dsp.httpdispatch) 
    6871    while not id or id < 3 do 
    69         res, id, data1, data2 = coroutine.resume(x, r, self.prefix) 
     72        res, id, data1, data2 = coroutine.resume(x, r, self.prefix, self.dsp_tree) 
    7073 
    7174        if not res then