Commit 9fc076a3 authored by Ted Trask's avatar Ted Trask

Updated for handle_form now passing self to get and set functions

parent b0f5d4a3
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment