diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 01:18:30 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 01:18:30 +0000 |
commit | 39f60af92aae372c9a386e8ecb94ee31d4ea8b25 (patch) | |
tree | 6c79afa7259932bf278c69a784dced7ab80895f3 /freeswitch-controller.lua | |
parent | f8a8ab3c1367ee6f55e7b982c8095022cae85af4 (diff) | |
download | acf-freeswitch-39f60af92aae372c9a386e8ecb94ee31d4ea8b25.tar.bz2 acf-freeswitch-39f60af92aae372c9a386e8ecb94ee31d4ea8b25.tar.xz |
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
Diffstat (limited to 'freeswitch-controller.lua')
-rw-r--r-- | freeswitch-controller.lua | 8 |
1 files changed, 3 insertions, 5 deletions
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) |