Commit 0fae9713 authored by Ted Trask's avatar Ted Trask
Browse files

Updated for handle_form now passing self to get and set functions

parent e61f08c5
......@@ -259,11 +259,11 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
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
......@@ -295,7 +295,7 @@ function getconfig()
return cfe({ type="group", value=output, label="DNS Masq Config" })
end
function setconfig(config)
function setconfig(self, config)
local success, config = validateconfig(config)
if success then
......@@ -327,9 +327,9 @@ function getconfigfile()
return modelfunctions.getfiledetails(configfile)
end
function setconfigfile(filedetails)
function setconfigfile(self, filedetails)
-- FIXME Validate
return modelfunctions.setfiledetails(filedetails, {configfile})
return modelfunctions.setfiledetails(self, filedetails, {configfile})
end
function getleases()
......
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