From 2b3a7472f9b4c3c25e1fe7d607d5d0df7eac90e8 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 19 Jan 2012 16:11:08 +0000 Subject: Starting to reorganize mvc.lua and acf_www controllers to move www-specific things from mvc to acf_www, and visa versa Goal is to have mvc.lua more usable from a lua app Also affects acf-cli and acf_cli controller --- app/acf_cli-controller.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/acf_cli-controller.lua') diff --git a/app/acf_cli-controller.lua b/app/acf_cli-controller.lua index 3d4a3e9..295bd47 100644 --- a/app/acf_cli-controller.lua +++ b/app/acf_cli-controller.lua @@ -8,7 +8,8 @@ mvc.on_load = function (self, parent) self.conf.libdir = self.conf.libdir or ( string.match(self.conf.appdir, "[^,]+/") .. "/lib/" ) self.conf.script = "" self.conf.default_prefix = "/acf-util/" - self.conf.default_controller = "welcome" + self.conf.default_controller = "welcome" + self.conf.viewtype = "serialized" -- this sets the package path for us and our children for p in string.gmatch(self.conf.libdir, "[^,]+") do @@ -25,13 +26,13 @@ end mvc.post_exec = function () end - +--[[ view_resolver = function(self) return function (viewtable) print(session.serialize("result", viewtable)) end end - +--]] --[[ The parent exception handler is just fine exception_handler = function (self, message ) print(session.serialize("exception", message)) -- cgit v1.2.3