diff options
-rw-r--r-- | postgresql-controller.lua | 7 | ||||
-rw-r--r-- | postgresql-details-html.lsp | 4 | ||||
-rw-r--r-- | postgresql-listfiles-html.lsp | 4 | ||||
-rw-r--r-- | postgresql-logfile-html.lsp | 1 | ||||
-rw-r--r-- | postgresql-model.lua | 2 |
5 files changed, 7 insertions, 11 deletions
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 diff --git a/postgresql-details-html.lsp b/postgresql-details-html.lsp index 8f1363e..ae142cd 100644 --- a/postgresql-details-html.lsp +++ b/postgresql-details-html.lsp @@ -1,5 +1,5 @@ <% local data, viewlibrary = ... -require("viewfunctions") +require("htmlviewfunctions") %> <% viewlibrary.dispatch_component("status") %> @@ -7,6 +7,6 @@ require("viewfunctions") <H2><%= html.html_escape(data.label) %></H2> <DL> <% -displayitem(data) +htmlviewfunctions.displayitem(data) %> </DL> diff --git a/postgresql-listfiles-html.lsp b/postgresql-listfiles-html.lsp index 2437393..9d8d6aa 100644 --- a/postgresql-listfiles-html.lsp +++ b/postgresql-listfiles-html.lsp @@ -1,8 +1,8 @@ <% local data, viewlibrary, page_info, session = ... -require("viewfunctions") +require("htmlviewfunctions") %> -<% displaycommandresults({"expert"}, session) %> +<% htmlviewfunctions.displaycommandresults({"expert"}, session) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") diff --git a/postgresql-logfile-html.lsp b/postgresql-logfile-html.lsp index 4f2e388..ab18bf4 100644 --- a/postgresql-logfile-html.lsp +++ b/postgresql-logfile-html.lsp @@ -1,5 +1,4 @@ <% local data, viewlibrary = ... -require("viewfunctions") %> <% if viewlibrary and viewlibrary.dispatch_component then diff --git a/postgresql-model.lua b/postgresql-model.lua index 690802d..6a4d188 100644 --- a/postgresql-model.lua +++ b/postgresql-model.lua @@ -34,7 +34,7 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS -function get_startstop(clientdata) +function get_startstop(clientdata) return modelfunctions.get_startstop(processname) end |