Re: [Catalyst] FormHandler -- pro or con?

2010-12-07 Thread Hernan Lopes
Of course you can load a fields config from a file, db or wathever here is a simple form example of formhandler with perl catalyst: in your User.pm controller: use HTML::FormHandler; sub fields { return [ display0 = { type = 'Display', html = 'h1Personal

[Catalyst] Transferring control via root/auto

2010-12-07 Thread Thompson
Here is my problem, If a user logs in for the 1st time I want to force them to change their password. I have a specific action in my Users controller to handle that. What I'm having a problem with is (redirecting or forwarding or detaching - i've tried them all) from the root/auto function to

Re: [Catalyst] Transferring control via root/auto

2010-12-07 Thread Ben van Staveren
You want to $c-detach('end') -- unless that's the default these days. I use this pattern a lot and the only difference I see is that I do: $c-detach('end') and return 0; $c-res-redirect($c-uri_for($c-controller('Users')-action_for('loginedit'), [$c-user-id] )); $c-detach();

Re: [Catalyst] Transferring control via root/auto

2010-12-07 Thread David Schmidt
On Tue, Dec 7, 2010 at 4:53 PM, Thompson r...@matsch.com wrote: Here is my problem, If a user logs in for the 1st time I want to force them to change their password.  I have a specific action in my Users controller to handle that.  What I'm having a problem with is (redirecting or forwarding

Re: [Catalyst] Transferring control via root/auto

2010-12-07 Thread Hernan Lopes
your redirect will make auto be executed again and redirecting again to loginedit On Tue, Dec 7, 2010 at 1:53 PM, Thompson r...@matsch.com wrote: Here is my problem, If a user logs in for the 1st time I want to force them to change their password. I have a specific action in my Users

[Catalyst] Configuration Management in Continuous Integration environments

2010-12-07 Thread Nicholas Wehr
Hello everyone, First off, beware, I'm a bit nutty when it comes to configuration management. I've recently deployed a Hudson instance and wanted to move some Catalyst projects into it. What I'd like to solicit feedback on here is: *how are you managing your Perl dependencies in these build