From 9291a3452b2d86403a1f4be559736df58571c3f2 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 23 Feb 2012 14:49:39 +0000 Subject: Updates to reflect changes in acf-core-0.15 - viewfunctions becomes htmlviewfunctions --- cron-listjobs-html.lsp | 6 +++--- health-networkstats-ajax.lsp | 10 ---------- health-networkstats-html.lsp | 1 - hostname-html.lsp | 4 ++-- interfaces-read-html.lsp | 4 ++-- interfaces-status-html.lsp | 10 +++++----- interfaces-update-html.lsp | 4 ++-- logfiles-status-html.lsp | 4 ++-- logfiles-tail-ajax.lsp | 12 ------------ logfiles-tail-html.lsp | 8 ++++---- logfiles-view-html.lsp | 14 +++++++------- modules-edit-html.lsp | 14 +++++++------- password-edit-html.lsp | 4 ++-- rc-edit-html.lsp | 4 ++-- rc-status-html.lsp | 4 ++-- syslog-config-html.lsp | 20 ++++++++++---------- syslog-loginfo-html.lsp | 6 +++--- 17 files changed, 53 insertions(+), 76 deletions(-) delete mode 100644 health-networkstats-ajax.lsp delete mode 100644 logfiles-tail-ajax.lsp diff --git a/cron-listjobs-html.lsp b/cron-listjobs-html.lsp index 6cc4463..79446a6 100644 --- a/cron-listjobs-html.lsp +++ b/cron-listjobs-html.lsp @@ -1,8 +1,8 @@ <% local view, viewlibrary, page_info, session = ... %> -<% require("viewfunctions") %> +<% require("htmlviewfunctions") %> -<% displaycommandresults({"editjob", "deletejob", "movejob"}, session) %> -<% displaycommandresults({"createjob"}, session, true) %> +<% htmlviewfunctions.displaycommandresults({"editjob", "deletejob", "movejob"}, session) %> +<% htmlviewfunctions.displaycommandresults({"createjob"}, session, true) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") diff --git a/health-networkstats-ajax.lsp b/health-networkstats-ajax.lsp deleted file mode 100644 index e8d176e..0000000 --- a/health-networkstats-ajax.lsp +++ /dev/null @@ -1,10 +0,0 @@ -<% local view, viewlibrary, page_info = ... %> -<% - require("json") -%> -Status: 200 OK -Content-Type: "application/json" -<% io.write("\n") %> -<% - print(json.encode(view)) -%> diff --git a/health-networkstats-html.lsp b/health-networkstats-html.lsp index 91084c0..0ba89bd 100644 --- a/health-networkstats-html.lsp +++ b/health-networkstats-html.lsp @@ -1,5 +1,4 @@ <% local view, viewlibrary, page_info = ... %> -<% require("viewfunctions") %> <% require("json") %> <% -- Table of colors diff --git a/hostname-html.lsp b/hostname-html.lsp index 52238b3..4563279 100644 --- a/hostname-html.lsp +++ b/hostname-html.lsp @@ -1,7 +1,7 @@ <% local view = ... %> -<% require("viewfunctions") %> +<% require("htmlviewfunctions") %>

<%= html.html_escape(view.label) %>

-<% displayitem(view) %> +<% htmlviewfunctions.displayitem(view) %>
diff --git a/interfaces-read-html.lsp b/interfaces-read-html.lsp index 922e96a..7e3850c 100644 --- a/interfaces-read-html.lsp +++ b/interfaces-read-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary, page_info, session = ... -require("viewfunctions") +require("htmlviewfunctions") %> <% showoption = function(option) @@ -12,7 +12,7 @@ require("viewfunctions") <% end %> <% end %> -<% displaycommandresults({"update", "delete", "ifup", "ifdown", "restart"}, session) %> +<% htmlviewfunctions.displaycommandresults({"update", "delete", "ifup", "ifdown", "restart"}, session) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") diff --git a/interfaces-status-html.lsp b/interfaces-status-html.lsp index dfca7b1..c20b798 100644 --- a/interfaces-status-html.lsp +++ b/interfaces-status-html.lsp @@ -1,14 +1,14 @@ <% local view = ... %> -<% require("viewfunctions") %> +<% require("htmlviewfunctions") %>

SYSTEM INFO

<% -displayitem(view.value.filename) -displayitem(view.value.ipaddr) -displayitem(view.value.iproute) +htmlviewfunctions.displayitem(view.value.filename) +htmlviewfunctions.displayitem(view.value.ipaddr) +htmlviewfunctions.displayitem(view.value.iproute) if view.value.iptunnel.value ~= "" then - displayitem(view.value.iptunnel) + htmlviewfunctions.displayitem(view.value.iptunnel) end %>
diff --git a/interfaces-update-html.lsp b/interfaces-update-html.lsp index cee1321..375c505 100644 --- a/interfaces-update-html.lsp +++ b/interfaces-update-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info = ... -require("viewfunctions") +require("htmlviewfunctions") %> @@ -149,5 +149,5 @@ require("viewfunctions") form.value.name.readonly = true end local order = {"name", "comment", "auto", "family", "method", "pre-up", "up", "down", "post-down"} - displayform(form, order) + htmlviewfunctions.displayform(form, order) %> diff --git a/logfiles-status-html.lsp b/logfiles-status-html.lsp index 1610417..804182f 100644 --- a/logfiles-status-html.lsp +++ b/logfiles-status-html.lsp @@ -1,7 +1,7 @@ <% local view, viewlibrary, page_info, session = ... %> -<% require("viewfunctions") %> +<% require("htmlviewfunctions") %> -<% displaycommandresults({"delete"}, session) %> +<% htmlviewfunctions.displaycommandresults({"delete"}, session) %>

Available Logfiles

diff --git a/logfiles-tail-ajax.lsp b/logfiles-tail-ajax.lsp deleted file mode 100644 index 8697208..0000000 --- a/logfiles-tail-ajax.lsp +++ /dev/null @@ -1,12 +0,0 @@ -<% local view, viewlibrary, page_info = ... %> -<% - require("json") - require("html") -%> -Status: 200 OK -Content-Type: "application/json" -<% io.write("\n") %> -<% - view.value.filecontent.value = html.html_escape(view.value.filecontent.value) - print(json.encode(view)) -%> diff --git a/logfiles-tail-html.lsp b/logfiles-tail-html.lsp index 921439c..1f63e91 100644 --- a/logfiles-tail-html.lsp +++ b/logfiles-tail-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info = ... %> -<% require("viewfunctions") %> +<% require("htmlviewfunctions") %>