[Catalyst] Authentication gotchas

Sebastian Riedel sri at oook.de
Sat Dec 17 04:12:10 CET 2005


Am 17.12.2005 um 03:52 schrieb Christopher H. Laco:

> Sebastian Riedel wrote:
>>
>> Am 17.12.2005 um 02:41 schrieb Johan Lindström:
>>
>>> At 19:55 2005-12-16, Christopher H. Laco wrote:
>>>> Take C::P::FormValidator and C::P::FormValidator::Simple.
>>>> The both claim $->form. Great. That's what plugins do right?
>>>
>>> How about we solve this problem _now_, because: yes, it's aleady too
>>> late and it will break code; but no, there will _never_ be a  
>>> better time.
>>>
>>> Deprecate form() in both modules for a few versions and then drop  
>>> it.
>>>
>>> IMHO.
>>>
>>> Catalyst is still very, very young. Let's fix things while it's  
>>> possible.
>>
>> I absolutely agree, calling it $c->form() was a mistake (of me and  
>> Lyo
>> Kato), and i wonder if $c->widget() for the upcoming HTML::Widget  
>> will
>> be a mistake again...
>>
>> What do you guys think? How to fix this?
>
> Would it be possible to take the route of the auth stuff here?
>
> use Catalyst qw/
> 	Forms
> 	Forms::Validator::DFV  or Forms::Validator::Simple
> /;
>
> $c->form->validate
> $c->form->errors

What would that solve?
The problem imo is that you can't use DFV and FVS together in the  
same app.

--
sebastian




More information about the Catalyst mailing list