Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-10 Thread Matt S Trout
Nilson Santos Figueiredo Junior wrote: On 11/8/06, Matt S Trout <[EMAIL PROTECTED]> wrote: > sub load : Chained('/item') PathPart('') CaptureArgs(1) { >my ($self, $c, $id) = @_; my $pre = $c->stash->{prefetches} = {}; $c->stash->{item} = Scalar::Defer::lazy { $c->model('DB')->s

Re: [Catalyst] Newbie needs help with tutorial

2006-11-10 Thread Kieren Diment
On 03/11/06, John Napiorkowski <[EMAIL PROTECTED]> wrote: You'll find that a lot of dispatched methods inCatalyst are wrapped in an eval so that it can catcherrors for you.  'eval 99' is referring to spot in theevaled code.I've found that it can be a bit hard to debug what's going wrong when the DB

Re: Fwd: [Catalyst] Why I get this error sometimes when run catalyst

2006-11-10 Thread Andy Grundman
Liu Xiao-Guang wrote: Forward 2 emails from Jesper Krogh on 2006-10-3. Maybe helpful. Please try 5.7005, this should be fixed. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: ht

[Catalyst] Chained('.') counter-intuitive?

2006-11-10 Thread Pedro Melo
Hi, I've been learning to use chained actions in the past few hours, and I must say I admire the though that went into them and the default values for each attribute, they are extremely elegant. The only issue I have is with Chained('.'). I prefer to keep the actions related to the same co

Re: [Catalyst] Chained('.') counter-intuitive?

2006-11-10 Thread Josef Karthauser
On Fri, Nov 10, 2006 at 12:42:03PM +, Pedro Melo wrote: > > sub films : Chained CaptureArgs(1) {} > sub view : Chained('films') Args(0){} > sub delete : Chained('films') Args(0){} > Ooh, am I missing a trick here? What are chained action? I've been chaining acti

Re: [Catalyst] Chained('.') counter-intuitive?

2006-11-10 Thread John Napiorkowski
Action chains are a type of dispatching strategy: http://www.annocpan.org/~MRAMBERG/Catalyst-Runtime-5.7005/lib/Catalyst/DispatchType/Chained.pm Makes it easy to dispatch through some controllers. --john --- Josef Karthauser <[EMAIL PROTECTED]> wrote: > On Fri, Nov 10, 2006 at 12:42:03PM +,

Re: [Catalyst] Chained('.') counter-intuitive?

2006-11-10 Thread Nilson Santos Figueiredo Junior
On 11/10/06, Josef Karthauser <[EMAIL PROTECTED]> wrote: Ooh, am I missing a trick here? What are chained action? I've been chaining actions together using $c->forward(). Is this the same kind of thing, or something altogether different? Chained actions is a feature that has already been aro

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-10 Thread John Siracusa
On 11/10/06 3:21 AM, Matt S Trout wrote: > Nilson Santos Figueiredo Junior wrote: >> Are there any known issues regarding this module? Because if not, I >> guess I'll probably start stuffing lazy calls inside my chained >> actions tomorrow. ;-) > > Don't believe so, and it's audreycode so *usually

Re: [Catalyst] Chained('.') counter-intuitive?

2006-11-10 Thread Josef Karthauser
On Fri, Nov 10, 2006 at 05:41:20AM -0800, John Napiorkowski wrote: > Action chains are a type of dispatching strategy: > http://www.annocpan.org/~MRAMBERG/Catalyst-Runtime-5.7005/lib/Catalyst/DispatchType/Chained.pm > > Makes it easy to dispatch through some controllers. > Ooh, I see. Sweet :).

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-10 Thread Nilson Santos Figueiredo Junior
On 11/10/06, Matt S Trout <[EMAIL PROTECTED]> wrote: Don't believe so, and it's audreycode so *usually* works first time. Plus I know a few active users in the Cat community and it's getting lots of use in Jifty, so I'm betting it's pretty solid. This makes me feel even sorrier for not being ab

Re: [Catalyst] Chained('.') counter-intuitive?

2006-11-10 Thread John Napiorkowski
--- Pedro Melo <[EMAIL PROTECTED]> wrote: > Hi, > > I've been learning to use chained actions in the > past few hours, and > I must say I admire the though that went into them > and the default > values for each attribute, they are extremely > elegant. > > The only issue I have is with Chain

Re: [Catalyst] Newbie needs help with tutorial

2006-11-10 Thread catalyst . 20 . chsg
Thanks for that tip. I'm looking forward to learning about TDD in Catalyst/Perl. I created a course not to long ago about unit testing for a software company and am really sold on it. On 11/10/06, Kieren Diment - [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: On 03/11/06, John Napiorkowski <[

Re: [Catalyst] Chained actions usage and DBIC performance

2006-11-10 Thread Perrin Harkins
On Fri, 2006-11-10 at 12:08 -0200, Nilson Santos Figueiredo Junior wrote: > On 11/10/06, Matt S Trout <[EMAIL PROTECTED]> wrote: > > Don't believe so, and it's audreycode so *usually* works first time. Plus I > > know a few active users in the Cat community and it's getting lots of use in > > Jifty