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
commit56cc13ff017ac78706ea427deddf75c3f9bdc720 (patch)
treedcfe13d56f4cb9045d92bcb0698860f3d70a34f1
parent027ffe3f0bc2b95adb2241415a0d68687dbbec5b (diff)
downloadacf-postfix-56cc13ff017ac78706ea427deddf75c3f9bdc720.tar.bz2
acf-postfix-56cc13ff017ac78706ea427deddf75c3f9bdc720.tar.xz
Updated for handle_form now passing self to get and set functions
-rw-r--r--postfix-model.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/postfix-model.lua b/postfix-model.lua
index 64b1af4..36646ed 100644
--- a/postfix-model.lua
+++ b/postfix-model.lua
@@ -36,11 +36,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
@@ -81,8 +81,8 @@ function getfiledetails(filename)
return modelfunctions.getfiledetails(filename, geteditablefilelist())
end
-function updatefiledetails(filedetails)
- return modelfunctions.setfiledetails(filedetails, geteditablefilelist())
+function updatefiledetails(self, filedetails)
+ return modelfunctions.setfiledetails(self, filedetails, geteditablefilelist())
end
function getnewfile()
@@ -91,7 +91,7 @@ function getnewfile()
return cfe({ type="group", value=options, label="New File" })
end
-function createfile(newfile)
+function createfile(self, newfile)
newfile.errtxt = "Failed to create file"
local path = string.match(newfile.value.filename.value, "^%s*(.*%S)%s*$") or ""
if not string.find(path, "/") then