Commit 39844298 authored by Ted Trask's avatar Ted Trask
Browse files

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 and modified require statements for acf libraries
parent db4e59d2
module(..., package.seeall)
-- Load libraries
require("controllerfunctions")
default_action = "status"
function status(self)
......@@ -10,7 +7,7 @@ function status(self)
end
function expert(self)
return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Heimdal Config", "Configuration Set")
return self.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Heimdal Config", "Configuration Set")
end
function klist(self)
......@@ -18,7 +15,7 @@ function klist(self)
end
function kinit(self)
return controllerfunctions.handle_form(self, self.model.get_kinit, self.model.set_kinit, self.clientdata, "Submit", "Obtain Kerberos Ticket")
return self.handle_form(self, self.model.get_kinit, self.model.set_kinit, self.clientdata, "Submit", "Obtain Kerberos Ticket")
end
function kdestroy(self)
......
<% local form, viewlibrary, page_info = ...
require("viewfunctions")
require("htmlviewfunctions")
%>
<H1><%= html.html_escape(form.label) %></H1>
<%
form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
form.value.password.type = "password"
displayform(form)
htmlviewfunctions.displayform(form)
%>
<% local data, viewlibrary, page_info, session = ... %>
<% require("viewfunctions") %>
<% require("htmlviewfunctions") %>
<% displaycommandresults({"kdestroy"}, session) %>
<% displaycommandresults({"kinit"}, session, true) %>
<% htmlviewfunctions.displaycommandresults({"kdestroy"}, session) %>
<% htmlviewfunctions.displaycommandresults({"kinit"}, session, true) %>
<H1><%= data.label %></H1>
<DL>
......
module(..., package.seeall)
-- Load libraries
require("processinfo")
require("modelfunctions")
require("fs")
require("format")
processinfo = require("acf.processinfo")
fs = require("acf.fs")
format = require("acf.format")
-- Set variables
local configfile = "/etc/krb5.conf"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment