diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-02-25 18:21:27 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-02-25 18:21:27 +0000 |
commit | 555fd1d7632bd06116a72aaa764e73073dcd3721 (patch) | |
tree | e8caf529f597977720b2a6cfcead4c487cfc35bf /pingu-controller.lua | |
download | acf-pingu-3f18bcf062c5330509c8f363bf17bf30d7fac917.tar.bz2 acf-pingu-3f18bcf062c5330509c8f363bf17bf30d7fac917.tar.xz |
Added pingu ACF.v0.1.0
git-svn-id: svn://svn.alpinelinux.org/acf/pingu/trunk@1706 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'pingu-controller.lua')
-rw-r--r-- | pingu-controller.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pingu-controller.lua b/pingu-controller.lua new file mode 100644 index 0000000..d4c7437 --- /dev/null +++ b/pingu-controller.lua @@ -0,0 +1,18 @@ +module(..., package.seeall) + +-- Load libraries +require("controllerfunctions") + +default_action = "status" + +function status(self) + return self.model.getstatus() +end + +function startstop(self) + return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.getstatus, 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") +end |