summaryrefslogtreecommitdiffstats
path: root/dansguardian-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-28 12:03:25 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-28 12:03:25 +0000
commit9fc076a395423fb81b0365fc20be93f85838befb (patch)
treebbccde34d38f8ff22caefed3b4843ea42cf74588 /dansguardian-model.lua
parentb0f5d4a3e85032894ec394e929ffc475d685ab0c (diff)
downloadacf-dansguardian-9fc076a395423fb81b0365fc20be93f85838befb.tar.bz2
acf-dansguardian-9fc076a395423fb81b0365fc20be93f85838befb.tar.xz
Updated for handle_form now passing self to get and set functions
Diffstat (limited to 'dansguardian-model.lua')
-rw-r--r--dansguardian-model.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/dansguardian-model.lua b/dansguardian-model.lua
index 4180226..97b69b9 100644
--- a/dansguardian-model.lua
+++ b/dansguardian-model.lua
@@ -82,11 +82,11 @@ get_status = function()
return modelfunctions.getstatus(processname, packagename, "Dans Guardian Status")
end
-function get_startstop(clientdata)
+function get_startstop(self, clientdata)
return modelfunctions.get_startstop(processname)
end
-function startstop_service(startstop, action)
+function startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action)
end
@@ -116,7 +116,7 @@ read_general_config = function()
return cfe({ type="group", value=retval, label="Dansguardian General Config" })
end
-update_general_config = function( config )
+update_general_config = function(self, config)
local success, config = validate_general_config(config)
if success then
@@ -143,8 +143,8 @@ get_file = function(filename)
return modelfunctions.getfiledetails(filename, is_valid_filename)
end
-update_file = function(filedetails)
- return modelfunctions.setfiledetails(filedetails, is_valid_filename)
+update_file = function(self, filedetails)
+ return modelfunctions.setfiledetails(self, filedetails, is_valid_filename)
end
list_files = function()