From eda53d1d4130965b5d49edb3d27ebe5f1a4c420f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 18 Apr 2012 01:34:55 +0000 Subject: Started work on updating for acf-core-0.15 Removed controllerfunctions library (still needs more work and corresponding work in model) Updated for viewfunctions to htmlviewfunctions --- postgresql-controller.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'postgresql-controller.lua') diff --git a/postgresql-controller.lua b/postgresql-controller.lua index 83f2a05..c1af2c5 100644 --- a/postgresql-controller.lua +++ b/postgresql-controller.lua @@ -1,8 +1,5 @@ module(..., package.seeall) --- Load libraries -require("controllerfunctions") - mvc = {} mvc.on_load = function(self, parent) self.model.set_processname(string.match(self.conf.prefix, "[^/]+")) @@ -15,7 +12,7 @@ function status(self) end function startstop(self) - return controllerfunctions.handle_form(self, self.model.get_startstop, 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) @@ -27,5 +24,5 @@ function listfiles(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 Postgresql File", "File Saved") + return self.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit Postgresql File", "File Saved") end -- cgit v1.2.3