webmcp

view framework/env/execute/filtered_view.lua @ 405:c5f9a1b2f225

Updated year of copyright notice
author jbe
date Wed Jan 06 02:54:45 2016 +0100 (2016-01-06)
parents eb3e236d261d
children
line source
1 --[[--
2 execute.filtered_view{
3 module = module, -- module name of the view to be executed
4 view = view -- name of the view to be executed
5 }
7 Executes a view with associated filters.
9 --]]--
11 function execute.filtered_view(args)
12 execute.multi_wrapped(
13 execute._create_sorted_execution_list(
14 function(add_by_path)
15 add_by_path("_filter")
16 add_by_path("_filter_view")
17 add_by_path(WEBMCP_APP_NAME, "_filter")
18 add_by_path(WEBMCP_APP_NAME, "_filter_view")
19 add_by_path(WEBMCP_APP_NAME, args.module, "_filter")
20 add_by_path(WEBMCP_APP_NAME, args.module, "_filter_view")
21 end,
22 function(full_path, relative_path)
23 trace.enter_filter{ path = relative_path }
24 execute.file_path{ file_path = full_path }
25 trace.execution_return()
26 end
27 ),
28 function()
29 execute.view(args)
30 end
31 )
32 end

Impressum / About Us