* libs/core: Moved ltn12 inside LuCI to avoid package conflicts with luasocket

This commit is contained in:
Steven Barth 2008-06-29 16:15:26 +00:00
parent 50039c134e
commit 66ec29f243
10 changed files with 11 additions and 11 deletions

View file

@ -33,7 +33,7 @@ DEALINGS IN THE SOFTWARE.
local string = require("string")
local table = require("table")
local base = _G
module("ltn12")
module("luci.ltn12")
filter = {}
source = {}

View file

@ -15,7 +15,7 @@ $Id$
module("luci.http.protocol", package.seeall)
require("ltn12")
local ltn12 = require("luci.ltn12")
require("luci.http.protocol.filter")
HTTP_MAX_CONTENT = 1024*4 -- 4 kB maximum content size

View file

@ -15,7 +15,7 @@ $Id$
module("luci.http.protocol.filter", package.seeall)
require("ltn12")
local ltn12 = require("luci.ltn12")
-- Factory that produces a filter which normalizes chunked transfer encoding

View file

@ -21,7 +21,7 @@ require("luci.http.protocol.date")
require("luci.http.protocol.mime")
require("luci.http.protocol.conditionals")
require("luci.fs")
require("ltn12")
local ltn12 = require("luci.ltn12")
Simple = luci.util.class(luci.httpd.module.Handler)
Response = luci.httpd.module.Response

View file

@ -18,7 +18,7 @@ module("luci.httpd.handler.luci", package.seeall)
require("luci.dispatcher")
require("luci.http")
require("luci.http.protocol.date")
require("ltn12")
local ltn12 = require("luci.ltn12")
Luci = luci.util.class(luci.httpd.module.Handler)
Response = luci.httpd.module.Response

View file

@ -14,7 +14,7 @@ $Id$
module("luci.httpd.module", package.seeall)
require("luci.util")
require("luci.http.protocol")
require("ltn12")
local ltn12 = require("luci.ltn12")
@ -133,4 +133,4 @@ end
function Response.setstatus(self, status)
self.status = status
end
end

View file

@ -24,7 +24,7 @@ limitations under the License.
]]--
module("luci.sgi.cgi", package.seeall)
require("ltn12")
local ltn12 = require("luci.ltn12")
require("luci.http")
require("luci.sys")
require("luci.dispatcher")

View file

@ -24,7 +24,7 @@ limitations under the License.
]]--
module("luci.sgi.webuci", package.seeall)
require("ltn12")
local ltn12 = require("luci.ltn12")
require("luci.http")
require("luci.util")
require("luci.dispatcher")

View file

@ -24,7 +24,7 @@ limitations under the License.
]]--
module("luci.sgi.wsapi", package.seeall)
require("ltn12")
local ltn12 = require("luci.ltn12")
require("luci.http")
require("luci.dispatcher")
require("luci.http.protocol")

View file

@ -25,7 +25,7 @@ limitations under the License.
]]--
module("luci.http", package.seeall)
require("ltn12")
local ltn12 = require("luci.ltn12")
require("luci.http.protocol")
require("luci.util")