diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 01:11:13 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 01:11:13 +0000 |
commit | e61f08c5a9e86d5d313038765e7f261f0bc2258b (patch) | |
tree | 938555e928c2b6f0abb684bd9b1ac1f3b14c9fc9 /dnsmasq-controller.lua | |
parent | de41e1d77f077140badcccd4005964c7ebaabc25 (diff) | |
download | acf-dnsmasq-e61f08c5a9e86d5d313038765e7f261f0bc2258b.tar.bz2 acf-dnsmasq-e61f08c5a9e86d5d313038765e7f261f0bc2258b.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 'dnsmasq-controller.lua')
-rw-r--r-- | dnsmasq-controller.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/dnsmasq-controller.lua b/dnsmasq-controller.lua index 41e3780..5ba412b 100644 --- a/dnsmasq-controller.lua +++ b/dnsmasq-controller.lua @@ -1,8 +1,5 @@ module(..., package.seeall) --- Load libraries -require("controllerfunctions") - default_action = "status" function status(self) @@ -10,15 +7,15 @@ function status(self) end function startstop(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 function config(self) - return controllerfunctions.handle_form(self, self.model.getconfig, self.model.setconfig, self.clientdata, "Save", "Edit Config", "Configuration Set") + return self.handle_form(self, self.model.getconfig, self.model.setconfig, self.clientdata, "Save", "Edit Config", "Configuration Set") end function expert(self) - return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config File", "Configuration File Set") + return self.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config File", "Configuration File Set") end function viewleases(self) |