summaryrefslogtreecommitdiffstats
path: root/heimdal-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-19 23:56:19 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-19 23:56:19 +0000
commit4f2939e77a15968a3b43517bae0c084a93f4b35b (patch)
treeecaf1b37ab7251f1009267bec8295ff0209129bf /heimdal-controller.lua
parentada03db6371b22e543423eec682cab375b3aabfd (diff)
downloadacf-heimdal-4f2939e77a15968a3b43517bae0c084a93f4b35b.tar.bz2
acf-heimdal-4f2939e77a15968a3b43517bae0c084a93f4b35b.tar.xz
Remove all calls to 'module' in preparation for move to Lua 5.2
Use mymodule parameter for module definition. This was also helpful in revealing places where the code relied on the global environment.
Diffstat (limited to 'heimdal-controller.lua')
-rw-r--r--heimdal-controller.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/heimdal-controller.lua b/heimdal-controller.lua
index 73756d4..f94a609 100644
--- a/heimdal-controller.lua
+++ b/heimdal-controller.lua
@@ -1,23 +1,25 @@
-module(..., package.seeall)
+local mymodule = {}
-default_action = "status"
+mymodule.default_action = "status"
-function status(self)
+function mymodule.status(self)
return self.model.getstatus()
end
-function expert(self)
+function mymodule.expert(self)
return self.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Heimdal Config", "Configuration Set")
end
-function klist(self)
+function mymodule.klist(self)
return self.model.klist()
end
-function kinit(self)
+function mymodule.kinit(self)
return self.handle_form(self, self.model.get_kinit, self.model.set_kinit, self.clientdata, "Submit", "Obtain Kerberos Ticket")
end
-function kdestroy(self)
+function mymodule.kdestroy(self)
return self.handle_form(self, self.model.get_kdestroy, self.model.kdestroy, self.clientdata, "Destroy", "Destroy Tickets")
end
+
+return mymodule