webmcp

view framework/env/execute/filtered_view.lua @ 562:328f120924a2

Removed if-clause when initializing file descriptor set to avoid compiler warning for mondelefant_conn_try_wait
author jbe
date Fri Feb 05 15:51:39 2021 +0100 (2021-02-05)
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