summaryrefslogtreecommitdiffstats
path: root/fetchmail-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'fetchmail-controller.lua')
-rw-r--r--fetchmail-controller.lua13
1 files changed, 1 insertions, 12 deletions
diff --git a/fetchmail-controller.lua b/fetchmail-controller.lua
index fdb17aa..1419a99 100644
--- a/fetchmail-controller.lua
+++ b/fetchmail-controller.lua
@@ -3,12 +3,6 @@ module(..., package.seeall)
-- ################################################################################
-- LOCAL FUNCTIONS
-local function list_redir (self)
- self.conf.action = "status"
- self.conf.type = "redir"
- error (self.conf)
-end
-
local function displaycmdsave(self)
-- Add a cmd button to the view
local cmdsave = cfe({ name="cmdsave",
@@ -58,12 +52,7 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-mvc = {}
-function mvc.on_load(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
+default_action = "status"
function status(self)
return { status=self.model:getstatus(self) }