- Tweaks to the Lua and extension API.  Note that this is a documentation-only
  change, meaning the design is being honed.  No support exists yet.
This commit is contained in:
Paul Beckingham
2012-01-15 11:39:53 -05:00
parent 15030599fd
commit 15d25d4fdf
5 changed files with 10 additions and 13 deletions

View File

@@ -45,7 +45,8 @@ end
-- Arguments: Raw data
-- Returns: Formatted data
-- Note: Shown here is a pass-through format, doing no formatting. This is
-- the default behavior if the format function is not implemented.
-- also the default behavior if the format function is not
-- implemented.
function format (value)
return value
end
@@ -53,8 +54,8 @@ end
-- Arguments: Value
-- Returns: Urgency Term
-- Note: Should reference rc.urgency.<field>.coefficient
function urgency (value)
coefficient = task_get ('urgency.priority.coefficient')
function urgency (uuid)
coefficient = task_get ('rc.urgency.priority.coefficient')
-- TODO Urgency calculation here