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

2007-05-14 Thread Marcello Romani
mla ha scritto: 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 wri

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

[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 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 thr

[Catalyst] FastMmap via Cygwin

2007-05-14 Thread Joseph
I'm wrestling with Catalyst under Cygwin. I wanted to play/prototype in that environment. I have the Catalyst Tutorial working, but with a few jury-rigged changes. I imagine there may be a better way to "fix" things... I have taken Cache::FastMmap v1.15 (from Ash Berlin) and installed

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

[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 s

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. > > Pleas

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 except

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') ) { # $e->er

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 a

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 ServerName myhostname DocumentRoot /var/www/registration/root SetHandler modperl PerlRes

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 wit

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 f

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 a

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 u

[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: SetHandler perl-script PerlHandler Registration

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

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 al

[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 r

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

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: PERL_DL_NONLAZY=

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 m

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
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: http://dev.catalyst.per

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] 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 m

[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 t/04_authe

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]> wrot