At 17:00 UTC (19:00 CEST, 13:00 EDT), this Gitlab instance will be upgraded and will be unavailable for a short while.

Commit 9fc076a3 authored by Ted Trask's avatar Ted Trask
Browse files

Updated for handle_form now passing self to get and set functions

parent b0f5d4a3
......@@ -82,11 +82,11 @@ get_status = function()
return modelfunctions.getstatus(processname, packagename, "Dans Guardian Status")
function get_startstop(clientdata)
function get_startstop(self, clientdata)
return modelfunctions.get_startstop(processname)
function startstop_service(startstop, action)
function startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action)
......@@ -116,7 +116,7 @@ read_general_config = function()
return cfe({ type="group", value=retval, label="Dansguardian General Config" })
update_general_config = function( config )
update_general_config = function(self, config)
local success, config = validate_general_config(config)
if success then
......@@ -143,8 +143,8 @@ get_file = function(filename)
return modelfunctions.getfiledetails(filename, is_valid_filename)
update_file = function(filedetails)
return modelfunctions.setfiledetails(filedetails, is_valid_filename)
update_file = function(self, filedetails)
return modelfunctions.setfiledetails(self, filedetails, is_valid_filename)
list_files = function()
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