From 6de563787eab24b3e67cb085644e942245d1a744 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 28 Apr 2012 12:17:43 +0000 Subject: Updated for handle_form now passing self to get and set functions --- vlc-model.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vlc-model.lua') diff --git a/vlc-model.lua b/vlc-model.lua index d1fe1ee..f799aa3 100644 --- a/vlc-model.lua +++ b/vlc-model.lua @@ -25,11 +25,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 @@ -54,9 +54,9 @@ function get_filedetails() return modelfunctions.getfiledetails(path) end -function setconfigfile(filedetails) +function setconfigfile(self, filedetails) -- FIXME Validate - return modelfunctions.setfiledetails(filedetails, {configfile}) + return modelfunctions.setfiledetails(self, filedetails, {configfile}) end function getleases() -- cgit v1.2.3