webmcp

diff framework/bin/mcp.lua @ 214:6ac7133bb58e

Work on Moonbridge integration: added execute._initializers(...), new function request.get_param{...}; Code cleanup in mcp.lua and tempstore.save(...)
author jbe
date Sat Jan 10 10:44:17 2015 +0100 (2015-01-10)
parents 9d3d11cf1bf6
children ba3dd4a17e3d
line diff
     1.1 --- a/framework/bin/mcp.lua	Sat Jan 10 10:30:01 2015 +0100
     1.2 +++ b/framework/bin/mcp.lua	Sat Jan 10 10:44:17 2015 +0100
     1.3 @@ -170,6 +170,13 @@
     1.4    try_exec(WEBMCP_BASE_PATH .. "env/__init.lua")
     1.5  end
     1.6  
     1.7 +-- replace Moonbridge listen function
     1.8 +local moonbridge_listen = listen
     1.9 +local listeners
    1.10 +function listen(args)
    1.11 +  listeners[#listeners+1] = args
    1.12 +end
    1.13 +
    1.14  -- prohibit (unintended) definition of new global variables
    1.15  _ENV = setmetatable({}, {
    1.16    __index = _G,
    1.17 @@ -178,12 +185,7 @@
    1.18    end
    1.19  })
    1.20  
    1.21 --- replace Moonbridge listen function and execute configurations
    1.22 -local moonbridge_listen = listen
    1.23 -local listeners
    1.24 -function _G.listen(args)
    1.25 -  listeners[#listeners+1] = args
    1.26 -end
    1.27 +-- execute configurations
    1.28  for i, config_name in ipairs(WEBMCP_CONFIG_NAMES) do
    1.29    execute.config(config_name)
    1.30  end

Impressum / About Us