[Catalyst] Authentication gotchas

Christopher H. Laco claco at chrislaco.com
Sat Dec 17 04:15:49 CET 2005

Sebastian Riedel wrote:
> 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.

No, you can use their cores in the same app, just not the plugins in the
same app. We just need a mediator for ->form and the consolidate the
various methods under it to their various modules...

Plus, I invision that Forms is a greater gateway into validators,
fill-inners, and to-db-objectors...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3178 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051216/5cde6661/smime.bin

More information about the Catalyst mailing list