summaryrefslogtreecommitdiffstats
path: root/config/determine_class.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-09-23 18:13:03 +0000
committerTed Trask <ttrask01@yahoo.com>2013-09-23 18:13:03 +0000
commitfb00ff8f05dae3c110beceb929ea036e4cd14ae1 (patch)
tree51d124ce1c65e3a600a7da7b9dd57ffafd83f910 /config/determine_class.lua
parent60ef6e20019e046aa801325d29893ada12b5d5af (diff)
downloadacf-provisioning-fb00ff8f05dae3c110beceb929ea036e4cd14ae1.tar.bz2
acf-provisioning-fb00ff8f05dae3c110beceb929ea036e4cd14ae1.tar.xz
Change function prototypes to pass self and use self.model instead of functions table
Changed the order of the first two parameters passed to validate function in provisioning_params Replaced all APP references with self, now that self is available Still need to implement swapvalidateparams script
Diffstat (limited to 'config/determine_class.lua')
-rw-r--r--config/determine_class.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/determine_class.lua b/config/determine_class.lua
index 675e6e8..53a1884 100644
--- a/config/determine_class.lua
+++ b/config/determine_class.lua
@@ -1,7 +1,7 @@
-- This is the script run to determine the device class from the HTTP user agent
-local functions, agent, classes = ...
+local self, agent, classes = ...
---APP.logevent("got to determine_class script")
+--self.logevent("got to determine_class script")
local manufacture, model
@@ -16,7 +16,7 @@ elseif string.match(agent, "snom") then
model = string.match(agent, "snom(%d+)")
end
---APP.logevent("Found "..(manufacture or "").." model "..(model or ""))
+--self.logevent("Found "..(manufacture or "").." model "..(model or ""))
if manufacture and model then
for i,c in ipairs(classes.value) do