diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-03-28 09:03:33 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-03-28 09:03:33 +0000 |
commit | a8b03832913061456afd218987402fed23ad076d (patch) | |
tree | c4ee1fabd2be3fce361b0a9e610cd3322cfd87b7 /ipsectools-controller.lua | |
parent | 21e2053e9a09638f9af7a0861a0faf33351c5129 (diff) | |
download | acf-ipsec-tools-a8b03832913061456afd218987402fed23ad076d.tar.bz2 acf-ipsec-tools-a8b03832913061456afd218987402fed23ad076d.tar.xz |
Renamed ipsec-tools to ipsectools to come around a but with the menu-system
git-svn-id: svn://svn.alpinelinux.org/acf/ipsec-tools/trunk@850 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'ipsectools-controller.lua')
-rw-r--r-- | ipsectools-controller.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ipsectools-controller.lua b/ipsectools-controller.lua new file mode 100644 index 0000000..2a31dd6 --- /dev/null +++ b/ipsectools-controller.lua @@ -0,0 +1,25 @@ +module(..., package.seeall) + +-- This is the object/text used when we want to add a new record + +require("format") + +local list_redir = function (self) + self.conf.action = "status" + self.conf.type = "redir" + error (self.conf) +end + +mvc = {} +mvc.on_load = function(self, parent) + if (self.worker[self.conf.action] == nil ) or ( self.conf.action == "init" ) then + self.worker[self.conf.action] = list_redir(self) + end +end + +-- ################################################################################ +-- PUBLIC FUNCTIONS +function status(self) + return { status=self.model.getstatus() } +end + |