[Catalyst] Re: Validating single arg id

2009-11-22 Thread Aristotle Pagaltzis
* Bill Moseley [2009-10-18 01:40]: > On Sat, Oct 17, 2009 at 12:50 PM, Aristotle Pagaltzis wrote: > > * iain [2009-10-16 17:30]: > > > until we did this we had boilerplate validation at the top > > > of all the local actions. > > > > ++ > > > > Bill, in another thread you asked me for an example

Re: [Catalyst] Re: Validating single arg id

2009-10-21 Thread Bill Moseley
On Wed, Oct 21, 2009 at 6:52 AM, Aristotle Pagaltzis wrote: > * Zbigniew Lukasiak [2009-10-21 14:15]: > > What is the advantage of this over: > > > > sub view : Local { > > my ( $self, $c, $id ) = @_; > > $self->start( $c, $id ); > > # do something with $c->stash->{obj} > > return 1; > > } >

[Catalyst] Re: Validating single arg id

2009-10-21 Thread Aristotle Pagaltzis
* Zbigniew Lukasiak [2009-10-21 14:15]: > What is the advantage of this over: > > sub view : Local { > my ( $self, $c, $id ) = @_; > $self->start( $c, $id ); > # do something with $c->stash->{obj} > return 1; > } Consider `/forum/7/topic/13/post/4/editform`. The end point in that chain would

Re: [Catalyst] Re: Validating single arg id

2009-10-17 Thread Bill Moseley
On Sat, Oct 17, 2009 at 12:50 PM, Aristotle Pagaltzis wrote: > * iain [2009-10-16 17:30]: > > until we did this we had boilerplate validation at the top of > > all the local actions. > > ++ > > Bill, in another thread you asked me for an example of how > Chained helps make things like complex aut

[Catalyst] Re: Validating single arg id

2009-10-17 Thread Aristotle Pagaltzis
* iain [2009-10-16 17:30]: > until we did this we had boilerplate validation at the top of > all the local actions. ++ Bill, in another thread you asked me for an example of how Chained helps make things like complex auth checks more DRY. I’ve been meaning to respond with an example out of my $j