webmcp
view framework/env/execute/inner.lua @ 2:72860d232f32
Version 1.0.2
Fixed bug with explicit garbage collection (requests > 256kB caused an error)
Views prefixed with an underscore can't be called externally
ui.paginate now displays the last page, if the selected page number is too high.
Fixed bug with explicit garbage collection (requests > 256kB caused an error)
Views prefixed with an underscore can't be called externally
ui.paginate now displays the last page, if the selected page number is too high.
author | jbe/bsw |
---|---|
date | Thu Dec 10 12:00:00 2009 +0100 (2009-12-10) |
parents | 9fdfb27f8e67 |
children | 1fcdd5c6f498 |
line source
1 --[[--
2 execute.inner()
4 It is MANDATORY to call this function once in each filter of a WebMCP application. Calling execute.inner() calls the next filter in the filter chain, or the view or action, if there are no more filters following. Code executed BEFORE calling this function is executed BEFORE the view or action, while code executed AFTER calling this function is executed AFTER the view of action.
6 --]]--
8 function execute.inner()
9 local stack = execute._wrap_stack
10 local pos = #stack
11 if pos == 0 then
12 error("Unexpected call of execute.inner().")
13 end
14 local inner_func = stack[pos]
15 if not inner_func then
16 error("Repeated call of execute.inner().")
17 end
18 stack[pos] = false
19 inner_func()
20 end