diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-03-03 21:55:09 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-03-03 21:55:09 +0000 |
commit | 64a4cac9126cb6d79fc243cdb65ae22e6c3d6350 (patch) | |
tree | e5215ce4c219aef474241b5974ebc0396457e25e /postgresql-controller.lua | |
download | acf-postgresql-64a4cac9126cb6d79fc243cdb65ae22e6c3d6350.tar.bz2 acf-postgresql-64a4cac9126cb6d79fc243cdb65ae22e6c3d6350.tar.xz |
Added postgresql first cut.
git-svn-id: svn://svn.alpinelinux.org/acf/postgresql/trunk@1726 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'postgresql-controller.lua')
-rw-r--r-- | postgresql-controller.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/postgresql-controller.lua b/postgresql-controller.lua new file mode 100644 index 0000000..cf6301f --- /dev/null +++ b/postgresql-controller.lua @@ -0,0 +1,26 @@ +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 details(self) + return self.model.getstatusdetails() +end + +function listfiles(self) + return self.model.getfilelist() +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 Postgresql File", "File Saved") +end |