webmcp
view framework/env/execute/view.lua @ 1:985024b16520
Version 1.0.1
New feature: JSON requests
Changes in ui.paginate: Current page setting is directly fetched from CGI params, instead of view params
Changed behavior of load methods of atom library to accept nil as input
Bugfixes in mondelefant_atom_connector timestamp(tz) loaders
Added global constant _WEBMCP_VERSION containing a version string
New feature: JSON requests
Changes in ui.paginate: Current page setting is directly fetched from CGI params, instead of view params
Changed behavior of load methods of atom library to accept nil as input
Bugfixes in mondelefant_atom_connector timestamp(tz) loaders
Added global constant _WEBMCP_VERSION containing a version string
| author | jbe | 
|---|---|
| date | Tue Nov 17 12:00:00 2009 +0100 (2009-11-17) | 
| parents | 9fdfb27f8e67 | 
| children | eb3e236d261d | 
 line source
     1 --[[--
     2 execute.view{
     3   module = module,  -- module name of the view to be executed
     4   view   = view,    -- name of the view to be executed
     5   id     = id,      -- id to be returned by param.get_id(...) during execution
     6   params = params   -- parameters to be returned by param.get(...) during execution
     7 }
     9 Executes a view directly (without associated filters).
    11 --]]--
    13 function execute.view(args)
    14   local module = args.module
    15   local view = args.view
    16   trace.enter_view{ module = module, view = view }
    17   execute.file_path{
    18     file_path = encode.file_path(
    19       request.get_app_basepath(),
    20       'app', request.get_app_name(), module, view .. '.lua'
    21     ),
    22     id     = args.id,
    23     params = args.params
    24   }
    25   trace.execution_return()
    26 end
