Re: [Catalyst] Trouble with Chained Actions and Redirects?

2006-09-19 Thread Robert 'phaylon' Sedlacek
[EMAIL PROTECTED] said: > Or maybe call it redirect_and_detach so other devs that may eventually > need to read/debug the code can guess what it does without seeing what > your definition of "stop" is =) > > always good to use known verbs =) Sure. But I found some people stay away from "detach" be

Re: [Catalyst] Trouble with Chained Actions and Redirects?

2006-09-19 Thread Wade . Stuart
> > Wouldn't even need to. It's just an (untested) > > sub MyApp::redirect_and_stop { > my $c = shift; > $c->response->redirect(@_); > $c->detach; > } > > and a call via $c->redirect_and_stop( $c->uri_for('/foo', $foo) ); Or maybe call it redirect_and_detach so other dev

Re: [Catalyst] Trouble with Chained Actions and Redirects?

2006-09-19 Thread Robert 'phaylon' Sedlacek
John Napiorkowski said: > I didn't know you could detach without an arg. That > sounds like want I want. That's docced in Catalyst.pm, tho I think it was only added recently. > I have to think I'm not the only one with this > confusion. Maybe we could alias $c->end to $c->detach > or something

Re: [Catalyst] Trouble with Chained Actions and Redirects?

2006-09-19 Thread John Napiorkowski
--- Robert 'phaylon' Sedlacek <[EMAIL PROTECTED]> wrote: > John Napiorkowski said: > > I have a controller with some chained actions. > One of > > the actions (not an endpoint) will redirect given > a > > certain value for the arguments. However I find > that > > this doesn't stop the chain fr

Re: [Catalyst] Trouble with Chained Actions and Redirects?

2006-09-19 Thread Robert 'phaylon' Sedlacek
John Napiorkowski said: > I have a controller with some chained actions. One of > the actions (not an endpoint) will redirect given a > certain value for the arguments. However I find that > this doesn't stop the chain from completing. I still > get a line about the redirect in the log, but the

Re: [Catalyst] Trouble with Chained Actions and Redirects?

2006-09-18 Thread Ash Berlin
John Napiorkowski wrote: > Hi, > > I have a controller with some chained actions. One of > the actions (not an endpoint) will redirect given a > certain value for the arguments. However I find that > this doesn't stop the chain from completing. I still > get a line about the redirect in the log,

[Catalyst] Trouble with Chained Actions and Redirects?

2006-09-18 Thread John Napiorkowski
Hi, I have a controller with some chained actions. One of the actions (not an endpoint) will redirect given a certain value for the arguments. However I find that this doesn't stop the chain from completing. I still get a line about the redirect in the log, but the endpoint in that chain still