Commit 214e1546 authored by Ted Trask's avatar Ted Trask

Change ACF list to structure for accuracy

parent e2855666
......@@ -1063,7 +1063,7 @@ function mymodule.importlogs(self, import)
end
function mymodule.getactivitylog()
local retval = cfe({ type="list", value={}, label="Weblog Activity Log" })
local retval = cfe({ type="structure", value={}, label="Weblog Activity Log" })
local res, err = pcall(function()
databaseconnect(DatabaseUser)
retval.value = listhistorylogentries() or {}
......@@ -1197,7 +1197,7 @@ end
function mymodule.getweblog(self, result)
local success = validateweblogparameters(result)
result.value.log = cfe({ type="list", value={}, label="Weblog Access Log" })
result.value.log = cfe({ type="structure", value={}, label="Weblog Access Log" })
result.value.window = cfe({ value=config.window or "5", label="Time Window" })
local err
if success then
......@@ -1216,7 +1216,7 @@ function mymodule.getweblog(self, result)
end
function mymodule.getusagestats()
local retval = cfe({ type="list", value={}, label="Weblog Usage Stats" })
local retval = cfe({ type="structure", value={}, label="Weblog Usage Stats" })
local res, err = pcall(function()
databaseconnect(DatabaseUser)
retval.value = listusagestats() or {}
......@@ -1234,7 +1234,7 @@ function mymodule.getauditstats()
result.auditstart = cfe({ value=config.auditstart or "", label="Audit Start Time" })
result.auditend = cfe({ value=config.auditend or "", label="Audit End Time" })
result.groupby = cfe({ value=config.groupby or "clientuserid", label="Group By" })
result.stats = cfe({ type="list", value={}, label="Audit Block Statistics" })
result.stats = cfe({ type="structure", value={}, label="Audit Block Statistics" })
local res, err = pcall(function()
if config.auditstart ~= "" and config.auditend ~= "" then
databaseconnect(DatabaseUser)
......@@ -1381,7 +1381,7 @@ function mymodule.adhocquery(self, query)
query.value.names.value = cur:getcolnames()
query.value.types = cfe({ type="list", value={}, label="Column types" })
query.value.types.value = cur:getcoltypes()
query.value.result = cfe({ type="list", value={}, label="Select result" })
query.value.result = cfe({ type="structure", value={}, label="Select result" })
local result = query.value.result.value
local row = cur:fetch ({}, "a")
while row do
......
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