blob: a07d141161deb91e9ac556302c96e6e514f324eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
module (..., package.seeall)
-- Public methods
default_action = "read"
read = function (self )
return ({skin = self.model:get(), url = self.conf.script .. self.conf.prefix .. self.conf.controller} )
end
update = function (self )
local newskin = self.clientdata.skin or ""
local updated = self.model:update(newskin)
redirect(self)
-- return ({skin = self.model:get(), updated=self.model:update(newskin), url = self.conf.script .. self.conf.prefix .. self.conf.controller} )
end
|