diff options
Diffstat (limited to 'hostname-controller.lua')
-rw-r--r-- | hostname-controller.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hostname-controller.lua b/hostname-controller.lua index c68c5c3..255f23c 100644 --- a/hostname-controller.lua +++ b/hostname-controller.lua @@ -1,12 +1,14 @@ -- the hostname controller -module (..., package.seeall) +local mymodule = {} -default_action = "read" +mymodule.default_action = "read" -read = function(self) +mymodule.read = function(self) return self.model.get(true) end -edit = function(self) +mymodule.edit = function(self) return self.handle_form(self, self.model.read_name, self.model.update_name, self.clientdata, "Save", "Edit Hostname", "Hostname Set") end + +return mymodule |