webmcp
diff framework/env/execute/view.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/view.lua Sun Oct 25 12:00:00 2009 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +--[[-- 1.5 +execute.view{ 1.6 + module = module, -- module name of the view to be executed 1.7 + view = view, -- name of the view to be executed 1.8 + id = id, -- id to be returned by param.get_id(...) during execution 1.9 + params = params -- parameters to be returned by param.get(...) during execution 1.10 +} 1.11 + 1.12 +Executes a view directly (without associated filters). 1.13 + 1.14 +--]]-- 1.15 + 1.16 +function execute.view(args) 1.17 + local module = args.module 1.18 + local view = args.view 1.19 + trace.enter_view{ module = module, view = view } 1.20 + execute.file_path{ 1.21 + file_path = encode.file_path( 1.22 + request.get_app_basepath(), 1.23 + 'app', request.get_app_name(), module, view .. '.lua' 1.24 + ), 1.25 + id = args.id, 1.26 + params = args.params 1.27 + } 1.28 + trace.execution_return() 1.29 +end