From 1e804aab4434b634a7821a234683da438b174db8 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Apr 2008 20:36:02 +0000 Subject: Modified cfe, removing option, errtxt, and name, and adding label - This may break things. Rewrote password module, adding model Modified authenticator to make password module work git-svn-id: svn://svn.alpinelinux.org/acf/gnats/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed --- gnats-controller.lua | 2 +- gnats-editpr-html.lsp | 4 ++-- gnats-query-html.lsp | 4 ++-- gnats-queryeditpr-html.lsp | 4 ++-- gnats-queryresult-html.lsp | 4 ++-- gnats-report-html.lsp | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gnats-controller.lua b/gnats-controller.lua index 7826c69..ada1e2e 100644 --- a/gnats-controller.lua +++ b/gnats-controller.lua @@ -476,7 +476,7 @@ function report(self) local noerrorsexists for k,v in pairs(alltags) do noerrorsexists = false - if (#reportform[v]['errtxt'] > 0) then break end + if (reportform[v]['errtxt']) then break end noerrorsexists = true end diff --git a/gnats-editpr-html.lsp b/gnats-editpr-html.lsp index 28b39cf..21483fd 100644 --- a/gnats-editpr-html.lsp +++ b/gnats-editpr-html.lsp @@ -13,7 +13,7 @@ function displayinfo(myform,tags,viewtype) if (myform[v]) and (myform[v]["value"]) then local val = myform[v] io.write("\n\t 0) then + if (val.errtxt) then val.class = "error" io.write(" class='error'") end @@ -35,7 +35,7 @@ function displayinfo(myform,tags,viewtype) io.write(html.form[val.type](val)) end if (val.descr) and (#val.descr > 0) then io.write("\n\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

") end - if (#val.errtxt > 0) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end + if (val.errtxt) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end io.write("\n\t\t\n") end end diff --git a/gnats-query-html.lsp b/gnats-query-html.lsp index 5aeace6..bff537a 100644 --- a/gnats-query-html.lsp +++ b/gnats-query-html.lsp @@ -13,7 +13,7 @@ function displayinfo(myform,tags,viewtype) if (myform[v]) and (myform[v]["value"]) then local val = myform[v] io.write("\n\t 0) then + if (val.errtxt) then val.class = "error" io.write(" class='error'") end @@ -35,7 +35,7 @@ function displayinfo(myform,tags,viewtype) io.write(html.form[val.type](val)) end if (val.descr) and (#val.descr > 0) then io.write("\n\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

") end - if (#val.errtxt > 0) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end + if (val.errtxt) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end io.write("\n\t\t\n") end end diff --git a/gnats-queryeditpr-html.lsp b/gnats-queryeditpr-html.lsp index dbde636..fb4ce57 100644 --- a/gnats-queryeditpr-html.lsp +++ b/gnats-queryeditpr-html.lsp @@ -13,7 +13,7 @@ function displayinfo(myform,tags,viewtype) if (myform[v]) and (myform[v]["value"]) then local val = myform[v] io.write("\n\t 0) then + if (pal.errtxt) then val.class = "error" io.write(" class='error'") end @@ -35,7 +35,7 @@ function displayinfo(myform,tags,viewtype) io.write(html.form[val.type](val)) end if (val.descr) and (#val.descr > 0) then io.write("\n\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

") end - if (#val.errtxt > 0) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end + if (val.errtxt) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end io.write("\n\t\t\n") end end diff --git a/gnats-queryresult-html.lsp b/gnats-queryresult-html.lsp index 2ef2eea..f1d47ed 100644 --- a/gnats-queryresult-html.lsp +++ b/gnats-queryresult-html.lsp @@ -13,7 +13,7 @@ function displayinfo(myform,tags,viewtype) if (myform[v]) and (myform[v]["value"]) then local val = myform[v] io.write("\n\t 0) then + if (val.errtxt) then val.class = "error" io.write(" class='error'") end @@ -35,7 +35,7 @@ function displayinfo(myform,tags,viewtype) io.write(html.form[val.type](val)) end if (val.descr) and (#val.descr > 0) then io.write("\n\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

") end - if (#val.errtxt > 0) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end + if (val.errtxt) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end io.write("\n\t\t\n") end end diff --git a/gnats-report-html.lsp b/gnats-report-html.lsp index 47ca45d..7047653 100644 --- a/gnats-report-html.lsp +++ b/gnats-report-html.lsp @@ -14,7 +14,7 @@ function displayinfo(myform,tags,viewtype) if (myform[v]) and (myform[v]["value"]) then local val = myform[v] io.write("\n\t 0) then + if (val.errtxt) then val.class = "error" io.write(" class='error'") end @@ -36,7 +36,7 @@ function displayinfo(myform,tags,viewtype) io.write(html.form[val.type](val)) end if (val.descr) and (#val.descr > 0) then io.write("\n\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

") end - if (#val.errtxt > 0) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end + if (val.errtxt) then io.write("\n\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end io.write("\n\t\t\n") end end -- cgit v1.2.3