Re: [Catalyst] email confirmation widget?

2007-10-10 Thread Dave Rolsky
On Wed, 10 Oct 2007, Dustin Suchter wrote: Has anyone put together a nice email-validation-link-generator widget for Catalyst (or Perl, for that matter)? All I can find on CPAN is something that is part of Jifty (whatever that is). http://search.cpan.org/~jesse/Jifty-0.70824/plugins/Login/lib/J

[Catalyst] email confirmation widget?

2007-10-10 Thread Dustin Suchter
Has anyone put together a nice email-validation-link-generator widget for Catalyst (or Perl, for that matter)? All I can find on CPAN is something that is part of Jifty (whatever that is). http://search.cpan.org/~jesse/Jifty-0.70824/plugins/Login/lib/Jifty/Plugin/Login/Action/ConfirmEmail.pm In a

Re: [Catalyst] uri_for and Chained actions

2007-10-10 Thread Oleg Pronin
If your project is heavy loaded then i think the best way is to write: or (easy to change): in Object: sub update_url {'/myapp/'.shift->id.'/update} because Catalyst.uri_for() still takes to much CPU to call it a hundred times per page. 2007/10/10, Cédric Bouvier <[EMAIL PROTECTED]>: > > Hello

[Catalyst] is it CPAN worthy?

2007-10-10 Thread Fayland Lam
A module to let user pick components. -- Fayland Lam // http://www.fayland.org/ package Catalyst::Plugin::PickComponents; use strict; use warnings; use vars qw/$VERSION/; $VERSION = '0.01'; use Module::Pluggable::Object; use Catalyst::Utils (); use NEXT; sub setup_components { my $class =

Re: [Catalyst] uri_for and Chained actions

2007-10-10 Thread J. Shirley
On 10/10/07, Cédric Bouvier <[EMAIL PROTECTED]> wrote: > > Hello Catalysters, > > I just started playing with Chained Actions, and so far I have a setup > like this: > > /myapp/* > /myapp/*/update > /myapp/*/update_do > > 'update' and 'update_do' being implemented in MyApp::C::Foo::upda

[Catalyst] Re: Serving a custom 404 page with Catalyst::Plugin::Static::Simple

2007-10-10 Thread Will Hawes
On 10/10/2007, Will Hawes <[EMAIL PROTECTED]> wrote: > > With Catalyst::Plugin::Static::Simple loaded, when I request a path like > '/static/non-existent-file', the plugin does stuff like $c->res->status(404) > for me by default. However, as I already have the following in > MyApp::Controller::Root

[Catalyst] Serving a custom 404 page with Catalyst::Plugin::Static::Simple

2007-10-10 Thread Will Hawes
With Catalyst::Plugin::Static::Simple loaded, when I request a path like '/static/non-existent-file', the plugin does stuff like $c->res->status(404) for me by default. However, as I already have the following in MyApp::Controller::Root: sub default : Private { my( $self, $c ) = @_; $c->res->s

Re: [Catalyst] BUG? value isn't numeric on Catalyst.pm 1357

2007-10-10 Thread Andy Grundman
On Oct 10, 2007, at 10:47 AM, Ruben Fonseca wrote: Hi! I'm here to report something I think it's a bug. I'm using the latest Catalyst stable distribution on Perl 5.8.8 and MacOS 10.4. I notice *a lot* of errors of this kind during debug: Argument "0,055361" isn't numeric in numeric eq (=

[Catalyst] BUG? value isn't numeric on Catalyst.pm 1357

2007-10-10 Thread Ruben Fonseca
Hi! I'm here to report something I think it's a bug. I'm using the latest Catalyst stable distribution on Perl 5.8.8 and MacOS 10.4. I notice *a lot* of errors of this kind during debug: Argument "0,055361" isn't numeric in numeric eq (==) at /opt/local/ lib/perl5/vendor_perl/5.8.8/Catalys

Re: [Catalyst] Catalyst::Model::Adaptor - because models shouldn't *do* anything

2007-10-10 Thread Christopher H. Laco
John Napiorkowski wrote: > --- Jonathan Rockway <[EMAIL PROTECTED]> wrote: > >> John Napiorkowski wrote: >>> One thing that I've done a lot with these kinds of >>> adapters is use AUTOLOAD or use Moose's built in >>> attribute delegation to make calling the adapted >>> classes methods easier. Wou

Re: [Catalyst] Catalyst::Model::Adaptor - because models shouldn't *do* anything

2007-10-10 Thread John Napiorkowski
--- Jonathan Rockway <[EMAIL PROTECTED]> wrote: > John Napiorkowski wrote: > > One thing that I've done a lot with these kinds of > > adapters is use AUTOLOAD or use Moose's built in > > attribute delegation to make calling the adapted > > classes methods easier. Would you take a patch > for > >

[Catalyst] uri_for and Chained actions

2007-10-10 Thread Cédric Bouvier
Hello Catalysters, I just started playing with Chained Actions, and so far I have a setup like this: /myapp/* /myapp/*/update /myapp/*/update_do 'update' and 'update_do' being implemented in MyApp::C::Foo::update and MyApp::C::Foo::update_do, respectively. Now, in the that gets dis