From 2ece009273252437281c8cc0b84ba2ec49e5d07c Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 17 Oct 2013 19:07:53 +0000 Subject: 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. --- password-controller.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'password-controller.lua') diff --git a/password-controller.lua b/password-controller.lua index 9982ada..f5d668c 100644 --- a/password-controller.lua +++ b/password-controller.lua @@ -1,8 +1,10 @@ -- the password controller -module (..., package.seeall) +local mymodule = {} -default_action = "edit" +mymodule.default_action = "edit" -edit = function (self) +mymodule.edit = function (self) return self.handle_form(self, self.model.read_password, self.model.update_password, self.clientdata, "Save", "Set System Password", "Password Set") end + +return mymodule -- cgit v1.2.3