summaryrefslogtreecommitdiffstats
path: root/asterisk-controller.lua
diff options
context:
space:
mode:
authorZach LeBar <zach@zachlebar.com>2012-03-29 13:39:34 +0000
committerZach LeBar <zach@zachlebar.com>2012-03-29 13:39:34 +0000
commit664f7e41674c2ab50fff296f6d3daf3eba829046 (patch)
tree3e86c372fe5f9f5785a399c772e0f719ff7990a1 /asterisk-controller.lua
parentb468d5ebc05acc8d09b27e85fdbb994922a06e96 (diff)
downloadacf-asterisk-664f7e41674c2ab50fff296f6d3daf3eba829046.tar.bz2
acf-asterisk-664f7e41674c2ab50fff296f6d3daf3eba829046.tar.xz
Fixing acf-asterisk to work with changes made to acf-core.HEADmaster
Removing the use of controllerfunctions.lua and using the new 'handle_form()' found in acf_www-controller.lua. Also using 'handle_form()' in place of 'redirect_to_referrer()'.
Diffstat (limited to 'asterisk-controller.lua')
-rw-r--r--asterisk-controller.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/asterisk-controller.lua b/asterisk-controller.lua
index 25994a3..404a141 100644
--- a/asterisk-controller.lua
+++ b/asterisk-controller.lua
@@ -2,8 +2,6 @@
module (..., package.seeall)
-require("controllerfunctions")
-
default_action = "status"
status = function( self )
@@ -11,7 +9,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 )
@@ -19,5 +17,5 @@ listfiles = function( self )
end
edit = 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, self.model.get_file, self.model.update_file, self.clientdata, "Save", "Edit File", "File Saved")
end