summaryrefslogtreecommitdiffstats
path: root/hostname-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-13 20:51:39 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-13 20:51:39 +0000
commit4329b7b6da85440f537da8e4c1b9da1150912df3 (patch)
tree7733780e543cd6e738405f72114f94ffc8ecee6a /hostname-controller.lua
parent303266d5fc5c1463a2aeecb2b4cc801b81ddfb06 (diff)
downloadacf-alpine-baselayout-4329b7b6da85440f537da8e4c1b9da1150912df3.tar.bz2
acf-alpine-baselayout-4329b7b6da85440f537da8e4c1b9da1150912df3.tar.xz
Added alpine-baselayout hostname and password edit.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1556 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'hostname-controller.lua')
-rw-r--r--hostname-controller.lua20
1 files changed, 5 insertions, 15 deletions
diff --git a/hostname-controller.lua b/hostname-controller.lua
index 3164ac6..10ab81c 100644
--- a/hostname-controller.lua
+++ b/hostname-controller.lua
@@ -1,24 +1,14 @@
-- the hostname controller
-
module (..., package.seeall)
--- Public methods
--- <prefix>/hostname/get
+require("controllerfunctions")
default_action = "read"
-read = function (self )
- return self.model:get()
-end
-
-update = function (self)
- return self.model:set(cfe({value=self.clientdata.hostname}))
+read = function(self)
+ return self.model.get()
end
---[[
-delete = function (self)
- return ({hostname = self.model:set(cfe({value=""}))})
+edit = function(self)
+ return controllerfunctions.handle_form(self, self.model.read_name, self.model.update_name, self.clientdata, "Save", "Edit Hostname", "Hostname Set")
end
-
-create = update
---]]