diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-04-24 13:43:11 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-04-24 13:43:11 +0000 |
commit | d5486de22228d4f1fd10e332cbf8e8dcd4680508 (patch) | |
tree | 0a08d377c1b1ea50061c7f6ac163431f18bf4184 /lbu-controller.lua | |
parent | 846ed9850be806771d1d837ba91a5fa14366db55 (diff) | |
download | acf-alpine-conf-d5486de22228d4f1fd10e332cbf8e8dcd4680508.tar.bz2 acf-alpine-conf-d5486de22228d4f1fd10e332cbf8e8dcd4680508.tar.xz |
Added destroy and on_unload functions. Moved saving of session from post_exec to on_unload.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-conf/trunk@1036 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lbu-controller.lua')
-rw-r--r-- | lbu-controller.lua | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lbu-controller.lua b/lbu-controller.lua index f258f5f..060a7b8 100644 --- a/lbu-controller.lua +++ b/lbu-controller.lua @@ -1,26 +1,11 @@ module(..., package.seeall) --- Set variables -local cfgfile - --- ################################################################################ --- LOCAL FUNCTIONS - -local function list_redir (self) - self.conf.action = "status" - self.conf.type = "redir" - error(self.conf) -end - -- ################################################################################ -- PUBLIC FUNCTIONS mvc={} function mvc.on_load (self, parent) - cfgfile = self:new("cfgfile") - if (self.worker[self.conf.action] == nil) or (self.conf.action == "init") then - self.worker[self.conf.action] = list_redir(self) - end + self.conf.default_action = "status" end function status (self) |