From 9fc076a395423fb81b0365fc20be93f85838befb Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 28 Apr 2012 12:03:25 +0000 Subject: Updated for handle_form now passing self to get and set functions --- dansguardian-model.lua | 10 +++++----- 1 file 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() -- cgit v1.2.3