webmcp
annotate framework/env/execute/view.lua @ 4:5e32ef998acf
Version 1.0.4
ui.link{...} with POST target can now be parameterized with BOTH content and text to allow HTML content for JavaScript browsers and a text-only version for accessiblity
Changes related to database selectors:
- Support for row-based locking
- New method :count(), caching and returning the number of rows, which WOULD have been returned by :exec()
- Bugfix: WHERE and HAVING expressions are now enclosed in parenthesis to avoid problems with operator precedence
ui.script{...} now supports external .js files
Changes in langtool.lua to cope with escaped new-line chars (\n)
ui.link{...} with POST target can now be parameterized with BOTH content and text to allow HTML content for JavaScript browsers and a text-only version for accessiblity
Changes related to database selectors:
- Support for row-based locking
- New method :count(), caching and returning the number of rows, which WOULD have been returned by :exec()
- Bugfix: WHERE and HAVING expressions are now enclosed in parenthesis to avoid problems with operator precedence
ui.script{...} now supports external .js files
Changes in langtool.lua to cope with escaped new-line chars (\n)
author | jbe/bsw |
---|---|
date | Fri Dec 25 12:00:00 2009 +0100 (2009-12-25) |
parents | 9fdfb27f8e67 |
children | eb3e236d261d |
rev | line source |
---|---|
jbe/bsw@0 | 1 --[[-- |
jbe/bsw@0 | 2 execute.view{ |
jbe/bsw@0 | 3 module = module, -- module name of the view to be executed |
jbe/bsw@0 | 4 view = view, -- name of the view to be executed |
jbe/bsw@0 | 5 id = id, -- id to be returned by param.get_id(...) during execution |
jbe/bsw@0 | 6 params = params -- parameters to be returned by param.get(...) during execution |
jbe/bsw@0 | 7 } |
jbe/bsw@0 | 8 |
jbe/bsw@0 | 9 Executes a view directly (without associated filters). |
jbe/bsw@0 | 10 |
jbe/bsw@0 | 11 --]]-- |
jbe/bsw@0 | 12 |
jbe/bsw@0 | 13 function execute.view(args) |
jbe/bsw@0 | 14 local module = args.module |
jbe/bsw@0 | 15 local view = args.view |
jbe/bsw@0 | 16 trace.enter_view{ module = module, view = view } |
jbe/bsw@0 | 17 execute.file_path{ |
jbe/bsw@0 | 18 file_path = encode.file_path( |
jbe/bsw@0 | 19 request.get_app_basepath(), |
jbe/bsw@0 | 20 'app', request.get_app_name(), module, view .. '.lua' |
jbe/bsw@0 | 21 ), |
jbe/bsw@0 | 22 id = args.id, |
jbe/bsw@0 | 23 params = args.params |
jbe/bsw@0 | 24 } |
jbe/bsw@0 | 25 trace.execution_return() |
jbe/bsw@0 | 26 end |