summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-28 12:17:45 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-28 12:17:45 +0000
commit17afeb7c5278b6cc6cc908a3e5c0544f905179df (patch)
tree0ea179a0c7a0e61b551357ec0917d92809462191
parent72dedfca943bb7a74598415d4f5d40cd555b0dec (diff)
downloadacf-ipsec-tools-17afeb7c5278b6cc6cc908a3e5c0544f905179df.tar.bz2
acf-ipsec-tools-17afeb7c5278b6cc6cc908a3e5c0544f905179df.tar.xz
Updated for handle_form now passing self to get and set functions
-rw-r--r--ipsectools-model.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/ipsectools-model.lua b/ipsectools-model.lua
index 4e67dbd..01f526a 100644
--- a/ipsectools-model.lua
+++ b/ipsectools-model.lua
@@ -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