summaryrefslogtreecommitdiffstats
path: root/postfix-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:33:04 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:33:04 +0000
commit027ffe3f0bc2b95adb2241415a0d68687dbbec5b (patch)
treef8b6c15fa1a7851ea710948ff1af03407cddb54b /postfix-controller.lua
parent8346bee32010a3237ff52f2a5330d61643dc06c1 (diff)
downloadacf-postfix-027ffe3f0bc2b95adb2241415a0d68687dbbec5b.tar.bz2
acf-postfix-027ffe3f0bc2b95adb2241415a0d68687dbbec5b.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 'postfix-controller.lua')
-rw-r--r--postfix-controller.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/postfix-controller.lua b/postfix-controller.lua
index cce6733..501087b 100644
--- a/postfix-controller.lua
+++ b/postfix-controller.lua
@@ -1,8 +1,5 @@
module(..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
default_action = "status"
function status(self)
@@ -10,7 +7,7 @@ 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 details(self)
@@ -22,7 +19,7 @@ function listfiles(self)
end
function createfile(self)
- return controllerfunctions.handle_form(self, self.model.getnewfile, self.model.createfile, self.clientdata, "Create", "Create new file", "New file created")
+ return self.handle_form(self, self.model.getnewfile, self.model.createfile, self.clientdata, "Create", "Create new file", "New file created")
end
function deletefile(self)
@@ -30,7 +27,7 @@ function deletefile(self)
end
function expert(self)
- return controllerfunctions.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit Postfix File", "File Saved")
+ return self.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit Postfix File", "File Saved")
end
function rebuilddatabases(self)