Re: [Catalyst] URL and myapp_cgi or myapp_fastcgi mapping.

2007-05-14 Thread Dister Kemp
Thanks Matt, Yes, I believe that is the reason why we have to go with FastCGI in Catalyst Apps. At least, as a starter, I am able to see a substantial exec time increase with CGI over FastCGI. So I guess I will stick with FastCGI. Thanks Dister. On 5/7/07, Matt S Trout [EMAIL PROTECTED]

[Catalyst] Dev Authentication Plugin

2007-05-14 Thread Jamie Neil
Apologies in advance if this is the wrong place to ask this. Trying to compile the latest dev release of the authentication plugin (0._01) and it's failing on tests: PERL_DL_NONLAZY=1 /usr/bin/perl -MExtUtils::Command::MM -e test_harness(0, 'blib/lib', 'blib/arch') t/*.t

Re: [Catalyst] Question about Catalyst::Controller::FormBuilder

2007-05-14 Thread Richard Jones
Matt S Trout wrote: On Sun, May 13, 2007 at 10:43:31AM -0700, Balaji Srinivasan wrote: Rather than the two approaches above, I think a better one was to add a new validation type to the FormBuilder VALIDATE array. $CGI::FormBuilder::Field::VALIDATE{FOOFIELD} = '/^[^,]{6,40}$/'; Now in all

Re: [Catalyst] Question about Catalyst::Controller::FormBuilder

2007-05-14 Thread Matt S Trout
On Mon, May 14, 2007 at 01:22:43PM +0100, Richard Jones wrote: Matt S Trout wrote: On Sun, May 13, 2007 at 10:43:31AM -0700, Balaji Srinivasan wrote: Rather than the two approaches above, I think a better one was to add a new validation type to the FormBuilder VALIDATE array.

Re: [Catalyst] How to make MyApp::B a part of MyApp::A ?

2007-05-14 Thread Oleg Pronin
Is this feature planned for the next release ? ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site:

Re: [Catalyst] How to make MyApp::B a part of MyApp::A ?

2007-05-14 Thread Matt S Trout
On Mon, May 14, 2007 at 06:05:20PM +0400, Oleg Pronin wrote: Is this feature planned for the next release ? I'm not sure the 'feature' is really well-defined enough yet to call it such. It's going to take somebody with a requirement for something along these lines to spike the work and see what

Re: [Catalyst] How to make MyApp::B a part of MyApp::A ?

2007-05-14 Thread Oleg Pronin
Please tell me how could i implement that without making the interface a complete app ? 2007/5/8, Matt S Trout [EMAIL PROTECTED]: On Mon, May 07, 2007 at 06:58:16PM +0400, Oleg Pronin wrote: I can test the part related to the subject of this thread with great pleasure. I'm currently making

Re: [Catalyst] Dev Authentication Plugin

2007-05-14 Thread Jay K
Hi There. Yes. Tests are a bit borked at the moment. Jay On May 14, 2007, at 8:01 AM, Jamie Neil wrote: Apologies in advance if this is the wrong place to ask this. Trying to compile the latest dev release of the authentication plugin (0._01) and it's failing on tests:

Re: [Catalyst] How to make MyApp::B a part of MyApp::A ?

2007-05-14 Thread Matt S Trout
On Mon, May 14, 2007 at 06:46:59PM +0400, Oleg Pronin wrote: 2007/5/8, Matt S Trout [EMAIL PROTECTED]: On Mon, May 07, 2007 at 06:58:16PM +0400, Oleg Pronin wrote: I can test the part related to the subject of this thread with great pleasure. I'm currently making full-featured dynamic

[Catalyst] Form validation in insert() and update()?

2007-05-14 Thread mla
I'm studying different frameworks for a new project. I'm very new to Catalyst and am reading through the tutorial. In part 8, advanced CRUD, there's an example of form validation. The approach is very similar to what I've always used but I've been looking at Rails recently and noticed that they

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Wade . Stuart
mla [EMAIL PROTECTED] wrote on 05/14/2007 02:45:49 PM: I'm studying different frameworks for a new project. I'm very new to Catalyst and am reading through the tutorial. In part 8, advanced CRUD, there's an example of form validation. The approach is very similar to what I've always

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread mla
[EMAIL PROTECTED] wrote: mla [EMAIL PROTECTED] wrote on 05/14/2007 02:45:49 PM: I'm studying different frameworks for a new project. I'm very new to Catalyst and am reading through the tutorial. In part 8, advanced CRUD, there's an example of form validation. The approach is very similar to

[Catalyst] running catalyst through mod_perl

2007-05-14 Thread John Goulah
If this is the wrong list, please direct me to the right place. I'm trying to get Catalyst working under apache/mod_perl (works fine with the standalone server). Basically, I have a very simple app called Registration. In apache I set it up like: Location /registration SetHandler perl-script

Re: [Catalyst] running catalyst through mod_perl

2007-05-14 Thread Andy Grundman
On May 14, 2007, at 5:09 PM, John Goulah wrote: If this is the wrong list, please direct me to the right place. I'm trying to get Catalyst working under apache/mod_perl (works fine with the standalone server). Basically, I have a very simple app called Registration. In apache I set it

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread RA Jones
mla wrote: Clearly Catalyst has an opinion on how to handle the request with Catalyst::Request. I'm sure you could override that somehow and use your own, but it's helpful that there's a default request interface that new developers can get up to speed quickly with. I don't see why that can't

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Dave Rolsky
On Mon, 14 May 2007, mla wrote: Anyone have validation logic in the model and are happy with it? There are two kinds of validation here. One is model-level validation, and yes, it's in my model code. My model throws exceptions, which I trap in the controller and mess with to make it work

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread mla
Dave Rolsky wrote: On Mon, 14 May 2007, mla wrote: Anyone have validation logic in the model and are happy with it? There are two kinds of validation here. One is model-level validation, and yes, it's in my model code. My model throws exceptions, which I trap in the controller and mess

Re: [Catalyst] running catalyst through mod_perl

2007-05-14 Thread John Goulah
Thanks, I'm using apache 2.2.3 -- That setup does sound much more logical, and here is what I have to match the example: - PerlSwitches -I/var/www/registration/lib PerlModule Registration VirtualHost * ServerName myhostname DocumentRoot /var/www/registration/root Location /

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Dave Rolsky
On Mon, 14 May 2007, mla wrote: There are two kinds of validation here. One is model-level validation, and yes, it's in my model code. My model throws exceptions, which I trap in the controller and mess with to make it work for the web UI. The controller might also do some validation, but

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread mla
Dave Rolsky wrote: On Mon, 14 May 2007, mla wrote: Could you give an example of how you munge the exceptions into error messages for the user? eval { $user-update( %bunch_of_stuff ); }; if ( my $e = Exception::Class-caught( 'My::App::Exception::DataValidation') ) { #

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Bill Moseley
On Mon, May 14, 2007 at 04:44:41PM -0500, Dave Rolsky wrote: On Mon, 14 May 2007, mla wrote: Anyone have validation logic in the model and are happy with it? There are two kinds of validation here. One is model-level validation, and yes, it's in my model code. My model throws exceptions,

Re: [Catalyst] Mason view hackers (and other views), PING

2007-05-14 Thread Florian Ragwitz
On Sat, May 12, 2007 at 06:48:01PM +0100, Matt S Trout wrote: I've had several people contact me with possible patches for C::V::Mason (and for others), but my response of I don't know Mason well enough, please can you post to the list for info has been ignored every single time. Please can

[Catalyst] catalyst tutorial: MyAppDB/Book.pm vs. MyApp/Model/Book.pm

2007-05-14 Thread mla
I just finished getting the tutorial project working. The thing I'm not clear on is this separation between lib/MyAppDB/ and lib/MyApp/Model/ The tutorial says: With Catalyst::Model::DBIC::Schema you essentially end up with two sets of model classes (only one of which you write... the other

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Dave Rolsky
On Mon, 14 May 2007, Bill Moseley wrote: There are two kinds of validation here. One is model-level validation, and yes, it's in my model code. My model throws exceptions, which I trap in the controller and mess with to make it work for the web UI. I tend to have much less validation in the

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread mla
Bill Moseley wrote: On Mon, May 14, 2007 at 04:44:41PM -0500, Dave Rolsky wrote: On Mon, 14 May 2007, mla wrote: Anyone have validation logic in the model and are happy with it? There are two kinds of validation here. One is model-level validation, and yes, it's in my model code. My model

[Catalyst] Session timeout and re-Authentication from a Frame

2007-05-14 Thread Steve H
Hi A couple of Login/authentication questions: As expected, when using frames, when a session times out and displays the Login page, it does so in the frame that is the target for that request. Is there any easy trick to be able to get that Login screen to use '_top' as the target? perhaps an

Re: [Catalyst] Form validation in insert() and update()?

2007-05-14 Thread Bill Moseley
On Mon, May 14, 2007 at 07:42:00PM -0700, mla wrote: Which is why I like the form validation tools to not be specific to the web/HTML side of things. The HTML side of the forms are easy, anyway, and often require hand-customizing. That way the same forms can be used for more than just the