summaryrefslogtreecommitdiffstats
path: root/openntpd-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:29:21 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:29:21 +0000
commit7e4ee0dd94ad37c10cd722916935822d79eea4fc (patch)
treee922e271714fd7e0cb350ad47d540b67a152c0db /openntpd-controller.lua
parentfb75da980e3c877575571108f0cc6747ba8f7b67 (diff)
downloadacf-openntpd-7e4ee0dd94ad37c10cd722916935822d79eea4fc.tar.bz2
acf-openntpd-7e4ee0dd94ad37c10cd722916935822d79eea4fc.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 'openntpd-controller.lua')
-rw-r--r--openntpd-controller.lua12
1 files changed, 3 insertions, 9 deletions
diff --git a/openntpd-controller.lua b/openntpd-controller.lua
index f735e84..dc90eb4 100644
--- a/openntpd-controller.lua
+++ b/openntpd-controller.lua
@@ -1,15 +1,9 @@
module (..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
--- ################################################################################
--- PUBLIC FUNCTIONS
-
default_action = "status"
function config(self)
- return controllerfunctions.handle_form(self, self.model.read_config, self.model.update_config, self.clientdata, "Save", "Edit OpenNTPD Config", "OpenNTPD Configuration Saved")
+ return self.handle_form(self, self.model.read_config, self.model.update_config, self.clientdata, "Save", "Edit OpenNTPD Config", "OpenNTPD Configuration Saved")
end
function status (self)
@@ -21,9 +15,9 @@ function details (self)
end
function expert (self)
- return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Config", "Configuration Set")
+ return self.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Config", "Configuration Set")
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