From e87110a3692c44b508e017809bc0d9582d72295d Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 7 Jul 2008 17:14:08 +0000 Subject: Implemented opennhrp config and validation. git-svn-id: svn://svn.alpinelinux.org/acf/opennhrp/trunk@1286 ab2d0c66-481e-0410-8bed-d214d4d58bed --- opennhrp-controller.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opennhrp-controller.lua') 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 -- cgit v1.2.3