Re: [Catalyst] Using Test::WWW::Mechanize::Catalyst on a test database

2012-02-16 Thread Robert Rothenberg
On 15/02/12 22:51 Kieren Diment wrote: On 16/02/2012, at 9:45 AM, Robert Rothenberg wrote: On 15/02/12 16:03 Jesse Sheidlower wrote: On Wed, Feb 15, 2012 at 03:25:51PM +, Robert Rothenberg wrote: I would like to use Test::WWW::Mechanize::Catalyst with an alternative database schema

Re: [Catalyst] Using Test::WWW::Mechanize::Catalyst on a test database

2012-02-16 Thread Jason Galea
On Thu, Feb 16, 2012 at 1:25 AM, Robert Rothenberg rob...@gmail.com wrote: I would like to use Test::WWW::Mechanize::Catalyst with an alternative database schema (since I want to test reading and writing on a database with the same schema but known data that is not the live database), but

Re: [Catalyst] Using Test::WWW::Mechanize::Catalyst on a test database

2012-02-16 Thread Robert Rothenberg
On 15/02/12 22:51 Kieren Diment wrote: On 16/02/2012, at 9:45 AM, Robert Rothenberg wrote: On 15/02/12 16:03 Jesse Sheidlower wrote: On Wed, Feb 15, 2012 at 03:25:51PM +, Robert Rothenberg wrote: I would like to use Test::WWW::Mechanize::Catalyst with an alternative database schema

[Catalyst] Listing all actions in app

2012-02-16 Thread Paolo Gianrossi
Hi List! I have an app and I would like to be able to list (in a select, but whatever), all public actions in all controllers of my app. Is there an easy way to do this? Thanks a lot! cheers paolino -- Paolo Gianrossi (An unmatched left parenthesis creates an unresolved tension that will

[Catalyst] Extending session expiry time?

2012-02-16 Thread Jesse Sheidlower
Using Catalyst::Plugin::Session, is there any way to extend a session _longer_ than the expiry time I give in my conf file? The docs for session_expire_key say it's only useful if _shorter_ than the default expiry time. The situation I'm trying to solve is basically that I have an app with local

Re: [Catalyst] Listing all actions in app

2012-02-16 Thread Peter Flanigan
On 16/02/12 17:34, Paolo Gianrossi wrote: I have an app and I would like to be able to list (in a select, but whatever), all public actions in all controllers of my app. Something like my $ns = $c-action-namespace; for my $container ($c-dispatcher-get_containers( $ns )) { for my

Re: [Catalyst] Catalyst::Controller: find_meta not found

2012-02-16 Thread Seth Daniel
On Wed, Feb 15, 2012 at 09:48:37PM +, Tomas Doran wrote: On 15 Feb 2012, at 15:55, Gavin Henry wrote: With a very simple catalyst app this happens: Array found where operator expected at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Controller.pm line 215, at end of line

Re: [Catalyst] Listing all actions in app

2012-02-16 Thread David Schmidt
If you start your app in debug mode you get a list of all actions. or ... # catalyst.pl Foo # cd Foo # vim list_actions.pl 1 #!/usr/bin/env perl 2 use strict; 3 use warnings; 4 use v5.10.1; 5 use FindBin qw/$Bin/; 6 use lib $Bin/lib; 7 use Data::Dumper; 8 use Foo; 9 10 my $app

Re: [Catalyst] Extending session expiry time?

2012-02-16 Thread Paolo Gianrossi
Hi Jesse, what I do is (blatantly taken from CatalystX::SimpleLogin source) something like # in Login controller, and action login my $parms = $c-request-body_parameters; if ($c-authenticate({ username = $parms-{username}, password = $parms-{password}} ))

Re: [Catalyst] Listing all actions in app

2012-02-16 Thread Paolo Gianrossi
2012/2/16 David Schmidt davew...@gmx.at If you start your app in debug mode you get a list of all actions. I'd rather have the list generated automatically, not to forget any action ;) or ... 12 my @controllers = map { $app-controller($_) } $app-controllers; 13 for my $controller

Re: [Catalyst] nginx/FastCGI configuration issues

2012-02-16 Thread Kieren Diment
On 16/02/2012, at 4:02 AM, Jesse Sheidlower wrote: Executive summary: new deployment on nginx 1.0.5 and FastCGI; my Catalyst apps are in non-root locations. When I go to the base, e.g. http://mysite.com/incomings, $c-req-uri thinks I'm at http://mysite.com/incomings//incomings. This is

Re: [Catalyst] Catalyst 5.9007 / memcache /high cpu

2012-02-16 Thread Toby Corkindale
On 17 February 2012 11:16, Todd Benge todd.be...@trackvia.com wrote: Hi, We recently updated our web servers to Catalyst 5.9007 with Perl 5.12. After the upgrade, we've consistently seen very high cpu on the machines 90%.  After much looking, it appears that the apache threads are stuck in

Re: [Catalyst] Catalyst 5.9007 / memcache /high cpu

2012-02-16 Thread Todd Benge
We're using PreFork. Sent from my iPhone On Feb 16, 2012, at 6:29 PM, Toby Corkindale t...@dryft.net wrote: On 17 February 2012 11:16, Todd Benge todd.be...@trackvia.com wrote: Hi, We recently updated our web servers to Catalyst 5.9007 with Perl 5.12. After the upgrade, we've consistently