From 39f60af92aae372c9a386e8ecb94ee31d4ea8b25 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 18 Apr 2012 01:18:30 +0000 Subject: Started work on updating for acf-core-0.15 Removed controllerfunctions library (still needs more work and corresponding work in model) Updated startstop functionality and deleted view Updated for viewfunctions to htmlviewfunctions and modified require statements for acf libraries --- freeswitch-controller.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'freeswitch-controller.lua') diff --git a/freeswitch-controller.lua b/freeswitch-controller.lua index 607d718..e7be60d 100644 --- a/freeswitch-controller.lua +++ b/freeswitch-controller.lua @@ -1,7 +1,5 @@ module (..., package.seeall) -require("controllerfunctions") - default_action = "status" status = function( self ) @@ -9,7 +7,7 @@ status = function( self ) end startstop = function( self ) - return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata) + return self.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata) end listfiles = function( self ) @@ -17,11 +15,11 @@ listfiles = function( self ) end editfile = function( self ) - return controllerfunctions.handle_form(self, function() return self.model.get_file(self.clientdata.filename) end, self.model.update_file, self.clientdata, "Save", "Edit File", "File Saved") + return self.handle_form(self, function() return self.model.get_file(self.clientdata.filename) end, self.model.update_file, self.clientdata, "Save", "Edit File", "File Saved") end function createfile(self) - return controllerfunctions.handle_form(self, self.model.getnewfile, self.model.createfile, self.clientdata, "Create", "Create New Freeswitch File", "Freeswitch File Created") + return self.handle_form(self, self.model.getnewfile, self.model.createfile, self.clientdata, "Create", "Create New Freeswitch File", "Freeswitch File Created") end function deletefile(self) -- cgit v1.2.3