From 56cc13ff017ac78706ea427deddf75c3f9bdc720 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 28 Apr 2012 12:17:45 +0000 Subject: Updated for handle_form now passing self to get and set functions --- postfix-model.lua | 10 +++++----- 1 file 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 -- cgit v1.2.3