Commit 17afeb7c authored by Ted Trask's avatar Ted Trask

Updated for handle_form now passing self to get and set functions

parent 72dedfca
......@@ -119,11 +119,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
......@@ -143,16 +143,16 @@ function get_racoonfiledetails()
return modelfunctions.getfiledetails(configfile)
end
function update_racoonfiledetails(filedetails)
return modelfunctions.setfiledetails(filedetails, {configfile})
function update_racoonfiledetails(self, filedetails)
return modelfunctions.setfiledetails(self, filedetails, {configfile})
end
function get_ipsecfiledetails()
return modelfunctions.getfiledetails(configfile2)
end
function update_ipsecfiledetails(filedetails)
return modelfunctions.setfiledetails(filedetails, {configfile2})
function update_ipsecfiledetails(self, filedetails)
return modelfunctions.setfiledetails(self, filedetails, {configfile2})
end
function list_certs()
......@@ -185,7 +185,7 @@ function new_upload_cert()
return cfe({ type="group", value=value })
end
function upload_cert(newcert)
function upload_cert(self, newcert)
local success = true
-- Trying to upload a cert/key
-- The way haserl works, cert contains the temporary file name
......
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