[Catalyst] Trapping exceptions in Catalyst.pm

2010-08-02 Thread Bill Moseley
In execute() there's this code: eval { $c-state( $code-execute( $class, $c, @{ $c-req-args } ) || 0 ) }; $c-_stats_finish_execute( $stats_info ) if $c-use_stats and $stats_info; my $last = pop( @{ $c-stack } ); if ( my $error = $@ ) { The problem is that it's possible for the

Re: [Catalyst] auth_bootstrap.pl question

2010-08-02 Thread Nicolas Voss
hi Kieren, tests were ok for DBIx::Class::Schema::Loader (test=pass after installation). What's wrong here? thank you in advance, marc Le 31 juil. 2010 à 01:16, Kieren Diment dim...@gmail.com a écrit : At a guess I think that there's something wrong with your installation of

[Catalyst] Speeding up recovery from 503 errors + backend

2010-08-02 Thread Paul Makepeace
From time to time I forget to restart the Catalyst backend and Apache reports the usual 503 Service Temporarily Unavailable error. Annoyingly, even when the backend is restarted Apache seems to negatively cache that backend gone away result and keep serving 503s. Is there a way to have it re-check

Re: [Catalyst] auth_bootstrap.pl question

2010-08-02 Thread Kieren Diment
I checked the recent version bump (for windows compat) for problems. I can't replicate the problem on my system using a clean app. The error is with DBIx::Class::Schema::Loader, but it's difficult to tell what the origin of the problem might be from here. $ perl -MDBIx::Class::Schema::Loader\

Re: [Catalyst] Catalyst 5.8: the Perl MVC Framework - Packt Publishing

2010-08-02 Thread Steve
I agree with Kieren's assessment. Though I did not read the Packt book, the Apress one sits on my desk as we speak (kind of). If I - people like me who are evaluating Catalyst for *real* web applications - am the intended audience, then I'm sure the interludes about design philosophy,

Re: [Catalyst] Speeding up recovery from 503 errors + backend

2010-08-02 Thread Bill Moseley
On Mon, Aug 2, 2010 at 12:58 AM, Paul Makepeace pa...@paulm.com wrote: From time to time I forget to restart the Catalyst backend and Apache reports the usual 503 Service Temporarily Unavailable error. Annoyingly, even when the backend is restarted Apache seems to negatively cache that

Re: [Catalyst] Speeding up recovery from 503 errors + backend

2010-08-02 Thread Paul Makepeace
On Mon, Aug 2, 2010 at 07:42, Bill Moseley mose...@hank.org wrote: On Mon, Aug 2, 2010 at 12:58 AM, Paul Makepeace pa...@paulm.com wrote: From time to time I forget to restart the Catalyst backend and Apache reports the usual 503 Service Temporarily Unavailable error. Annoyingly, even when

Re: [Catalyst] auth_bootstrap.pl question

2010-08-02 Thread Tomas Doran
On 2 Aug 2010, at 08:51, Nicolas Voss wrote: tests were ok for DBIx::Class::Schema::Loader (test=pass after installation). What's wrong here? Can you install Devel::SimpleTrace and re-run auth_bootstrap.pl with PERL5OPTS=-MDevel::SimpleTrace in your environment? That should emit a stack

Re: [Catalyst] Catalyst::Test local_request(), Test::WWW::Mechanize::Catalyst, and base href=...

2010-08-02 Thread Tomas Doran
On 29 Jul 2010, at 21:40, Ronald J Kimball wrote: The only reference I found to this issue is a post to this mailing list from 2007, which no one answered. Has anyone else experienced this problem? Would a patch that cribs some code from LWP::UserAgent and puts it in Catalyst::Test

[Catalyst] Tutorial : Schema Generator

2010-08-02 Thread Greg Zapp
Hey guys! I'm working my way through the tutorial chapters and I keep running on this issue. Here is some output from the static schema loader: __PACKAGE__-set_primary_key(user_id, role_id); __PACKAGE__-belongs_to(role_id, MyApp::Schema::Result::Role, { id = role_id });