jbe/bsw@0: --[[-- jbe/bsw@0: action_status = -- status code returned by the action (a string) jbe/bsw@0: execute.action{ jbe/bsw@0: module = module, -- module name of the action to be executed jbe/bsw@0: action = action, -- name of the action to be executed jbe/bsw@0: id = id, -- id to be returned by param.get_id(...) during execution jbe/bsw@0: params = params -- parameters to be returned by param.get(...) during execution jbe/bsw@0: } jbe/bsw@0: jbe/bsw@0: Executes an action without associated filters. jbe/bsw@0: This function is only used by execute.filtered_action{...}, which itself is only used by the webmcp.lua file in the cgi-bin/ directory. jbe/bsw@0: jbe/bsw@0: --]]-- jbe/bsw@0: jbe/bsw@0: function execute.action(args) jbe/bsw@0: local module = args.module jbe/bsw@0: local action = args.action jbe/bsw@0: trace.enter_action{ module = module, action = action } jbe/bsw@0: local action_status = execute.file_path{ jbe/bsw@0: file_path = encode.file_path( jbe/bsw@0: request.get_app_basepath(), jbe/bsw@0: 'app', request.get_app_name(), module, '_action', action .. '.lua' jbe/bsw@0: ), jbe/bsw@0: id = args.id, jbe/bsw@0: params = args.params jbe/bsw@0: } jbe/bsw@0: trace.execution_return{ status = action_status } jbe/bsw@0: return action_status jbe/bsw@0: end