From 315100c1f0770015407e7bd355cf58779cc8dfe3 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 --- openntpd-model.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openntpd-model.lua b/openntpd-model.lua index 9924701..097eba2 100644 --- a/openntpd-model.lua +++ b/openntpd-model.lua @@ -52,11 +52,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 @@ -99,7 +99,7 @@ function read_config () return cfe({ type="group", value=config, label="OpenNTPD Config" }) end -function update_config(config) +function update_config(self, config) local success, config = validate_config(config) if success then @@ -158,7 +158,7 @@ function get_filedetails() return modelfunctions.getfiledetails(configfile) end -function update_filedetails(filedetails) - return modelfunctions.setfiledetails(filedetails, {configfile}) +function update_filedetails(self, filedetails) + return modelfunctions.setfiledetails(self, filedetails, {configfile}) end -- cgit v1.2.3