[jifty-devel] Mysterious Dispatcher / Jifty::View::Declare vanishing templates:9

Peter Mottram peter at sysnix.com
Mon Jun 14 13:25:12 EDT 2010


On Mon, 14 Jun 2010, Jesse Vincent wrote:
> On Mon, Jun 14, 2010 at 02:55:24PM +0200, Peter Mottram wrote:
>> Jifty, Jifty::DBI and TD now all as of git on 11/6 and still have my
>> weird errors. DumpDispatcher shows the dispatch table correctly when
>> called from a before rule but the rule that should be triggered
>> (which logs as its first action) is not called. Here is some debug
>> output:
>>
>> 2010/06/14 14:45:47 DEBUG> Dispatcher.pm:873 Jifty::Dispatcher::_do_dispatch - Dispatching request to /course/Emergency_First_Response
>> 2010/06/14 14:45:47 DEBUG> Dispatcher.pm:648 Jifty::Dispatcher::_do_before - Matched 'before' rule (?-xism:(?<=\A/)([^/]*)(?=/|\z)) for /course/Emergency_First_Response
>> 2010/06/14 14:45:47 DEBUG> Dispatcher.pm:648 Jifty::Dispatcher::_do_before - Matched 'before' rule (?-xism:(?<=\A/)([^/]*)(?=/|\z)) for /course/Emergency_First_Response
>> 2010/06/14 14:45:47 DEBUG> DumpDispatcher.pm:38 Jifty::Plugin::DumpDispatcher::dump_rules - Dispatcher rules in stage SETUP:
>> <snip/>
>> 2010/06/14 14:45:47 DEBUG> DumpDispatcher.pm:39 Jifty::Plugin::DumpDispatcher::dump_rules - under 'course'    on 'tec'        run {...}    on 'flowchart'        run {...}    on '*'        run {...}
>> <snip/>
>> 2010/06/14 14:45:47 DEBUG> DumpDispatcher.pm:38 Jifty::Plugin::DumpDispatcher::dump_rules - Dispatcher rules in stage CLEANUP:
>> 2010/06/14 14:45:47 DEBUG> Web.pm:981 Jifty::Web::render_template - Showing path /errors/404 using Jifty::View::Declare::Handler
>>
>> All looks fine to me but the required rule is not called since its
>> info log output doesn't appear in the log output above. I can get
>> different parts of my app to 'disappear' depending on the order that
>> I go through the site.
>>
>> Any hints as to whereabouts in Jifty core I should start inserting
>> more debug logging?
>
> Are you up for posting your dispatcher somewhere?

It's a work in progress (in the middle of transitioning from Mason to TD):

http://www.nl.petescaff.com/Dispatcher.pm

Not a massive beast.

Cheers
PeteM


More information about the jifty-devel mailing list