webmcp

diff framework/env/encode/action_file_path.lua @ 0:9fdfb27f8e67

Version 1.0.0
author jbe/bsw
date Sun Oct 25 12:00:00 2009 +0100 (2009-10-25)
parents
children 2cb27106aa73
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/framework/env/encode/action_file_path.lua	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +--[[--
     1.5 +path =                    -- string containing a path to an action
     1.6 +encode.action_file_path{
     1.7 +  module = module,        -- module name
     1.8 +  action = action         -- action name
     1.9 +}
    1.10 +
    1.11 +This function returns the file path of an action with a given module name and action name. Both module name and action name are mandatory arguments.
    1.12 +
    1.13 +--]]--
    1.14 +
    1.15 +function encode.action_file_path(args)
    1.16 +  return (encode.file_path(
    1.17 +    request.get_app_basepath(),
    1.18 +    'app',
    1.19 +    request.get_app_name(),
    1.20 +    args.module,
    1.21 +    '_action',
    1.22 +    args.action .. '.lua'
    1.23 +  ))
    1.24 +end

Impressum / About Us