webmcp

diff framework/env/execute/config.lua @ 0:9fdfb27f8e67

Version 1.0.0
author jbe/bsw
date Sun Oct 25 12:00:00 2009 +0100 (2009-10-25)
parents
children eb3e236d261d
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/framework/env/execute/config.lua	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +--[[--
     1.5 +execute.config(
     1.6 +  name           -- name of the configuration to be loaded
     1.7 +)
     1.8 +
     1.9 +Executes a configuration file of the application.
    1.10 +This function is only used by by the webmcp.lua file in the cgi-bin/ directory.
    1.11 +
    1.12 +--]]--
    1.13 +
    1.14 +function execute.config(name)
    1.15 +  trace.enter_config{ name = name }
    1.16 +  execute.file_path{
    1.17 +    file_path = encode.file_path(
    1.18 +      request.get_app_basepath(), 'config', name .. '.lua'
    1.19 +    )
    1.20 +  }
    1.21 +  trace.execution_return()
    1.22 +end

Impressum / About Us