From b58210efc15c3e438c271adb3404eeafcd407565 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 --- shorewall-model.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shorewall-model.lua b/shorewall-model.lua index 5aef6f8..1d8fda0 100644 --- a/shorewall-model.lua +++ b/shorewall-model.lua @@ -181,11 +181,11 @@ function getstatusdetails() return cfe({ value=programstate, label="Shorewall status report" }) end -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 @@ -234,8 +234,8 @@ function getfiledetails(filename) return modelfunctions.getfiledetails(filename, is_valid_filename) end -function updatefiledetails (filedetails) - return modelfunctions.setfiledetails(filedetails, is_valid_filename) +function updatefiledetails(self, filedetails) + return modelfunctions.setfiledetails(self, filedetails, is_valid_filename) end --[[ -- cgit v1.2.3