summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-28 12:17:45 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-28 12:17:45 +0000
commitb8c5d733d739ad9c717dc6c8a635d3a752073edf (patch)
treefd71374096b2b3f4dee2a1dbb72bf871f4a9ba5d
parent3456da773e17156008cc6767ab425b87b737eafa (diff)
downloadacf-fetch-crl-b8c5d733d739ad9c717dc6c8a635d3a752073edf.tar.bz2
acf-fetch-crl-b8c5d733d739ad9c717dc6c8a635d3a752073edf.tar.xz
Updated for handle_form now passing self to get and set functions
-rw-r--r--fetchcrl-model.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/fetchcrl-model.lua b/fetchcrl-model.lua
index 7b68fd2..e2568c9 100644
--- a/fetchcrl-model.lua
+++ b/fetchcrl-model.lua
@@ -33,12 +33,12 @@ get_status = function()
return cfe({ type="group", value=status, label="Fetch-CRL Status" })
end
-function get_startstop(clientdata)
+function get_startstop(self, clientdata)
local actions = {"Download", "Delete"}
return cfe({ type="group", label="Management", value={}, option=actions })
end
-function startstop_service(startstop, action)
+function startstop_service(self, startstop, action)
if (string.lower(action) == "download") then
local file = io.popen(path .. "fetch-crl 2>&1")
if file ~= nil then
@@ -62,6 +62,6 @@ get_configfile = function()
return modelfunctions.getfiledetails(configfile)
end
-update_configfile = function(filedetails)
- return modelfunctions.setfiledetails(filedetails, {configfile})
+update_configfile = function(self, filedetails)
+ return modelfunctions.setfiledetails(self, filedetails, {configfile})
end