diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-07-07 17:14:08 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-07-07 17:14:08 +0000 |
commit | e87110a3692c44b508e017809bc0d9582d72295d (patch) | |
tree | c9c7fd840c7bb5fe15cfd37f1a7f7d612f8b62d0 /opennhrp-controller.lua | |
parent | 980dc13e790094b67c900fab60adddf275d343b8 (diff) | |
download | acf-opennhrp-e87110a3692c44b508e017809bc0d9582d72295d.tar.bz2 acf-opennhrp-e87110a3692c44b508e017809bc0d9582d72295d.tar.xz |
Implemented opennhrp config and validation.
git-svn-id: svn://svn.alpinelinux.org/acf/opennhrp/trunk@1286 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'opennhrp-controller.lua')
-rw-r--r-- | opennhrp-controller.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opennhrp-controller.lua b/opennhrp-controller.lua index 7c18cf4..aab365d 100644 --- a/opennhrp-controller.lua +++ b/opennhrp-controller.lua @@ -17,9 +17,9 @@ function startstop(self) end function config(self) - return controllerfunctions.handle_form(self, self.model.getconfig, self.model.setconfig, self.clientdata, "Save", "Edit Config", "Configuration Set") + return controllerfunctions.handle_form(self, function() return self.model:getconfig() end, function(value) return self.model:setconfig(value) end, self.clientdata, "Save", "Edit Config", "Configuration Set") end function expert (self) - return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config", "Configuration Set") + return controllerfunctions.handle_form(self, function() return self.model:getconfigfile() end, function(value) return self.model:setconfigfile(value) end, self.clientdata, "Save", "Edit Config", "Configuration Set") end |