summaryrefslogtreecommitdiffstats
path: root/shorewall-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:56:44 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:56:44 +0000
commit4467798e4d334fea742912bb3ba2588668826fe4 (patch)
treea53624edb58ad7e0ae1593f9f77399212f074474 /shorewall-controller.lua
parent6969a341d6f6435ff0b172e8ba8fce5e40fe8571 (diff)
downloadacf-shorewall-4467798e4d334fea742912bb3ba2588668826fe4.tar.bz2
acf-shorewall-4467798e4d334fea742912bb3ba2588668826fe4.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 'shorewall-controller.lua')
-rw-r--r--shorewall-controller.lua24
1 files changed, 2 insertions, 22 deletions
diff --git a/shorewall-controller.lua b/shorewall-controller.lua
index 99b31c4..6b27c27 100644
--- a/shorewall-controller.lua
+++ b/shorewall-controller.lua
@@ -1,25 +1,5 @@
module(..., package.seeall)
-require("controllerfunctions")
---[[
-local newrecordtxt = "[New]"
-
--- ################################################################################
--- LOCAL FUNCTIONS
-
-local function displaycmdsave(self)
- -- Add a cmd button to the view
- local cmdsave = cfe({ name="cmdsave",
- label="Save/Apply above settings",
- value="Save",
- type="submit",
- })
- return cmdsave
-end
---]]
--- ################################################################################
--- PUBLIC FUNCTIONS
-
default_action = "status"
function status(self)
@@ -31,7 +11,7 @@ function details(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 listfiles(self)
@@ -39,7 +19,7 @@ function listfiles(self)
end
function edit(self)
- return controllerfunctions.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit File", "File Saved")
+ return self.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit File", "File Saved")
end
function check(self)