[Catalyst] RunAfterRequest/delayed Catalyst view

Steve Kleiman steve at prodhub.com
Mon May 3 04:28:55 GMT 2010

Wow, Matt. That works like a charm. THANK YOU.

No pointing and laughing from this corner. Except at myself for not setting up a proper email dispatching mechanism. One bridge at a time.

Again, my thanks for tracking that down.

Steve Kleiman
steve at prodhub.com

On May 2, 2010, at 12:49 PM, Matt S Trout wrote:

> On Fri, Apr 30, 2010 at 02:38:50PM -0700, Steve Kleiman wrote:
>> Here goes...hopefully a simple test case for the RunAfterRequest oddness.
>> The code below with the forward INSIDE 'run_after_request' subroutine throws the error:
>>> [error] Caught exception in engine "Modification of non-creatable array value attempted, subscript -1 at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Dispatcher.pm line 278."
> I think that's probably $c->stack being empty because there's no request
> anymore.
> I *think* that
> $c->view('Email')->process($c);
> would work, since that doesn't rely on the action call stack.
> That error message is fucking awful though, and almost certainly my fault.
> Proposal: first you try the ->process-by-hand approach to confirm that I'm
> an idiot the way I think I am. Second we discuss how to either (a) fix this
> or (b) make sure it produces a non-awful error.
> (even if you've already rewritten the code it'd be much appreciated if you
> could try this out and see if it does the right thing - also, you then get to
> point and laugh at me with a bit of luck, which may or may not be an added
> incentive ;)
> -- 
> Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue
> http://shadowcat.co.uk/blog/matt-s-trout/   http://twitter.com/shadowcat_mst/
> Email me now on mst (at) shadowcat.co.uk and let's chat about how our Catalyst
> commercial support, training and consultancy packages could help your team.
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100502/2238bfeb/attachment.htm

More information about the Catalyst mailing list