summaryrefslogtreecommitdiffstats
path: root/pingu-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:32:16 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:32:16 +0000
commit3d14538d699a162cd07df5004bb7de36a3cd4c9f (patch)
treedb9d27be6ae38044b2cc9642b4155d9ae4c6b19d /pingu-controller.lua
parentaf7cb1fcef679bdab9000f30a5a77ae412ebd67e (diff)
downloadacf-pingu-3d14538d699a162cd07df5004bb7de36a3cd4c9f.tar.bz2
acf-pingu-3d14538d699a162cd07df5004bb7de36a3cd4c9f.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 Modified require statements for acf libraries
Diffstat (limited to 'pingu-controller.lua')
-rw-r--r--pingu-controller.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/pingu-controller.lua b/pingu-controller.lua
index b088d04..f70e7ac 100644
--- a/pingu-controller.lua
+++ b/pingu-controller.lua
@@ -1,8 +1,5 @@
module(..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
default_action = "status"
function status(self)
@@ -10,9 +7,9 @@ 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 expert(self)
- return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Pingu Config", "Configuration Set")
+ return self.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Pingu Config", "Configuration Set")
end